/* main content */
.login-page,
.remind-password {
    background: var(--zaliasLinear1);
}
.login-content {
    margin-top: 146px;
    color: var(--white1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 50px 100px;
    transition: padding 0.4s ease, margin-top 0.4s ease;
}
/* small window */
.login-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--background1);
    width: 500px;
    padding: 40px;
    margin: 150px 0;
    transition: padding 0.4s ease, margin 0.4s ease, width 0.4s ease;
}
.login-inner .h3 {
    text-transform: uppercase;
    margin-bottom: 12px;
}
.login-inner .recovery-password {
    margin-bottom: 32px;
    transition: margin-bottom 0.4s ease;
}
.login-inner .title-content {
    margin-bottom: 32px;
    transition: margin-bottom 0.4s ease;
}
/* form */
#custom-login-form,
#password-reset-form {
    width: 100%;
}
.login-page-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
/* input */
.my-acc-input {
    padding: 0 20px;
    height: 50px;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 5px;
    color: var(--grey3);
    position: relative;
    transition: height 0.4s ease;
}
.my-acc-input::placeholder {
    color: var(--grey1);
}
.password-field {
    position: relative;
}
#visible,
.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px ;
    color: var(--grey1);
    background: none;
    border: none;
    z-index: 100;
    transition: color 0.4s ease;
}
#visible:hover,
.toggle-password:hover {
    color: var(--grey3);
    cursor: pointer;
}
#visible svg,
.toggle-password svg,
.toggle-password {
    width: 20.73px;
    height: 20.73px;
}
/* changes eye */
#visible svg:nth-child(1) { 
    display: block; 
} 
#visible svg:nth-child(2) { 
    display: none; 
}  
/* When active → swap icons */
#visible.active svg:nth-child(1) {
     display: none; 
}
#visible.active svg:nth-child(2) {
     display: block; 
     color: var(--green2);
}
/* Default state: first icon visible, second hidden */
.toggle-password svg:nth-child(1) { 
    display: block; 

}
.toggle-password svg:nth-child(2) { 
    display: none; 
    color: var(--green2);
}

/* Active state: swap icons */
.toggle-password.active svg:nth-child(1) { display: none; }
.toggle-password.active svg:nth-child(2) { display: block; }
/* error */
#login-error,
#remind-password-error,
#reset-password-result {
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visability 0.4s ease, margin 0.4s ease;
}
#login-error.show {
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: auto;
    opacity: 1;
    visibility: visible;
}
#remind-password-error.green,
#remind-password-error.red,
#reset-password-result.green,
#reset-password-result.red {
    margin-top: 8px;
    margin-right: auto;
    opacity: 1;
    visibility: visible;
}

#login-error::before,
#remind-password-error.red::before,
#reset-password-result.red::before {
    content: "";
    background-image: url(../icons/form_errors.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 18px;
    width: 18px;
    display: block;
}
#remind-password-error.green::before,
#reset-password-result.green::before {
    content: "";
    background-image: url(../icons/form_success.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 18px;
    width: 18px;
    display: block;
}
/* lost password? */
.lost-password {
    margin-top: 6px;
}
.lost-password a,
.remind-password-link a,
.no-account .body3 a {
    color: var(--green2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease;
}
.lost-password a:hover,
.remind-password-link a:hover,
.no-account .body3 a:hover {
    border-bottom: 1px solid var(--green2);
}
.remind-password-link {
    margin-top: 24px;
}
/* no account section */
.no-account {
    text-align: center;
    color: var(--white1);
    margin-top: 40px;
}
.no-account .body3 {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 4px;
}
.no-account .body3 a {
    width: fit-content;
}
/* button */
#send-code {
    margin-top: 20px;
}
/* @responsive */
@media (max-width: 768px) {
    /* main content */
    .login-content {
        padding: 30px 20px;
        margin-top: 60px;
    }
    .login-inner .recovery-password {
        margin-bottom: 24px;
    }
    /* small window */
    .login-inner {
        padding: 24px 16px;
        margin: 100px 0;
        max-width: 400px;
    }
    .login-inner .title-content {
        margin-bottom: 24px;
    }
    .no-account {
        margin-top: 24px;
    }
    .no-account .body3 {
        flex-direction: column;
        gap: 0px;
        align-items: center;
    }
    /* input */
    .my-acc-input {
        height: 45px;
    }
}