body {
    height: 100%;
    align-items: unset;
    flex-direction: unset;
}

.overlay {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background-color: var(--main-background-color);
}

h1 {
    margin-block-start: 0;
    margin-block-end: 0;
    font-size: 61px;
}

a {
    text-decoration: none;
}

.w-100 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.w-200 {
    width: 200px;
}

header {
    margin: 67px;
    margin-bottom: 40px;
}

.header-desktop {
    gap: 35px;
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.header-desktop button {
    font-size: 16px;
    padding: 15px 16px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    justify-content: center;
}

.form-render-container {
    width: 100%;
    max-width: 652px;
    padding: 48px 0;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.form-render-container-singUp {
    max-width: 598px;
}

.singUp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-top: 50px;
}

.singUp-container button {
    padding: 10px 16px;
    font-size: 16px;
}

.form-headline {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    margin-bottom: 32px;
}

footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-bottom: 40px;
}

footer a {
    color: #BBBBBC;
    width: 120px;
    text-align: center;
}


/* look */
.return-container {
    position: absolute;
    height: 1px;
}

.return-button {
    position: relative;
    top: 16px;
    left: 43px;
    cursor: pointer;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-headline .seperator {
    background-color: var(--join-light-blue);
    width: 150px;
    height: 3px;
}

.input-email-container {
    border-radius: 12px;
    height: 42px;
    padding: 8px;
    border: 1px solid #D1D1D1;
    background-color: white;
    display: flex;
    justify-content: space-between;
    max-width: 422px;
    margin: 0 auto;
    width: 100%;
}

.input-password-message-container {
    border-radius: 12px;
    height: 42px;
    padding: 8px;
    border: 1px solid #D1D1D1;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    max-width: 422px;
    margin: 0 auto;
    width: 100%;
}

.input-password-container {
    display: flex;
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
}

.input-password-message-container:focus-within {
    border-color: var(--join-light-blue);
}

.message-wrong-passwords {
    margin-block-start: 0px;
    margin-block-end: 0;
    font-size: 13px;
    color: #FF8190;
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
    position: absolute;
    padding-top: 4px;
    padding-left: 2px;
    display: none;
}

.input-email-container img {
    width: 20px;
    height: 20px;
}

.input-password-container img {
    width: 20px;
    height: 20px;
}

.input-email,
.input-password {
    border: none;
    padding-left: 10px;
    width: 100%;
}

.input-email:focus,
.input-password:focus {
    outline: none;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 40px;
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
}

.checkbox-container.singUp-box {
    justify-content: center;
    padding: 20px 0;
}

.form-buttons-container {
    display: flex;
    align-items: center;
    gap: 35px;
}

.form-buttons-container button {
    padding: 15px 24px;
    font-size: 21px;
    font-weight: 700;
}

/* ################# */

.custom-checkbox {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid #2A3647;
    background-color: white;
    cursor: pointer;
    border-radius: 3px;
    position: relative;
    padding: 0;
}

.custom-checkbox:checked {
    border-color: #2A3647;
}

.custom-checkbox:checked::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    background-color: white;
    top: -3px;
    left: 12px;
    z-index: 1;
}

.custom-checkbox:checked::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 12px;
    border: solid #2A3647;
    border-width: 0 2px 2px 0;
    transform: rotate(39deg);
    top: -3px;
    left: 5px;
    z-index: 2;
}

.checkbox-link {
    font-weight: 300;
    color: var(--join-light-blue);
}










/* mobil */
@media (max-width: 1024px) {

    h1 {
        font-size: 47px;
    }

    main {
        padding: 42px 12px;
    }

    .form-render-container {
        max-width: 396px;
        padding: 32px 16px;
    }

    .form-render-container-singUp {
        max-width: 396px;
        padding: 32px 16px;
    }

    footer {
        padding-bottom: 34px;
    }

    .form-headline .seperator {
        width: 88px;
    }

    .checkbox-container {
        padding-left: 20px;
    }
    
    .form-buttons-container {
        flex-direction: column;
        gap: 21px;
    }

    .form-buttons-container button {
        padding: 4px 0;
        font-size: 16px;
        font-weight: 700;
        width: 180px;
        height: 51px;
    }

    .return-button {
        top: 10px;
        left: 22px;
    }
}

@media (max-width: 400px) {
    .return-button {
        left: 0;
    }
}

@media (max-width: 1023px) {
    .header-desktop {
        display: none;
    }
}



/* Form input */

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 32px;
}

form.form-singUp {
    gap: 24px;
}

form .input-icon input {
    font-size: 20px;
    height: 48px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d1d1;
    padding: 0px 21px;
    font-weight: 400;
}
  
form input:focus-visible {
    border-color: var(--join-light-blue);
    outline: var(--join-light-blue);
}

form input::placeholder {
    color: #d1d1d1;
}

.input-icon {
    position: relative;
    width: 100%;
    max-width: 422px;
}

.input-icon img {
    position: absolute;
    top: 50%;
    right: 21px;
    transform: translateY(-50%);
}

.wrong-value {
border-color: #FF001F !important;
}
.wrong-value:focus-visible {
border-color: #FF001F !important;
outline: #FF001F !important;
}

.eyeIcons {
    display: none;
    cursor: pointer;
}

.input-icon:focus-within #lockIcon {
    display: none;
}
.input-icon:focus-within #lockIconConfirm {
    display: none;
}
.input-icon input:not(:placeholder-shown) + #lockIcon {
    display: none;
}
.input-icon input:not(:placeholder-shown) + #lockIconConfirm {
    display: none;
}
.input-icon:focus-within .eyeIcons {
    display: unset;
}
.input-icon input:not(:placeholder-shown) ~ .eyeIcons {
    display: unset;
}
/* ##################### */


.hidden {
    display: none !important;
}


/* hover */
@media(min-width: 1024px) {

    .singUp-container {
        display: none;
    }

    .custom-checkbox:hover {
        background-color: #EDF2FA;
    }
    
    footer a:hover {
        text-decoration: none;
        font-weight: bold;
        color: #55A9DE;
    }

    .return-button:hover {
        background-color: #eeeeee;
    }

    .checkbox-link:hover {
        font-weight: 400;
        text-decoration: underline;
    }
}

@media (max-width: 1024px) {

    .custom-checkbox:active {
        background-color: #EDF2FA;
    }
    
    footer a:active {
        text-decoration: none;
        font-weight: bold;
        color: #55A9DE;
    }

    .return-button:active {
        background-color: #eeeeee;
    }

    .checkbox-link:active {
        font-weight: 400;
        text-decoration: underline;
    }
}

.show-message {
    display: block;
}


.popup-container {
    background-color: #2a3647;
    width: 312px;
    height: 74px;
    color: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: fixed;
    bottom: -80px;
    left: 50%;
  
    transform: translateX(-50%);
    opacity: 0;
    transition: bottom 0.3s ease, opactiy 0.3s ease;
}
  
.popup-container.visible {
    bottom: 50%;
    opacity: 1;
}