/* ==========================================================
   A.T.L.A.S. LOGIN PAGE
   ========================================================== */

.login-page {
    width: 100%;
}


/* ==========================================================
   HEADER
   ========================================================== */

.login-header {
    margin-bottom: 34px;
}


.login-header__eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--auth-primary);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}


.login-header h2 {
    margin-bottom: 10px;

    color: var(--auth-text);

    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}


.login-header p {
    color: var(--auth-muted);

    font-size: 13px;
    line-height: 1.7;
}


/* ==========================================================
   FORM
   ========================================================== */

.login-form {
    width: 100%;
}


.login-field {
    margin-bottom: 22px;
}


.login-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}


.login-field__label {
    display: block;

    margin-bottom: 8px;

    color: var(--auth-text);

    font-size: 12px;
    font-weight: 600;
}


.login-field__label-row .login-field__label {
    margin-bottom: 0;
}


/* ==========================================================
   INPUTS
   ========================================================== */

.login-input-wrap {
    position: relative;

    width: 100%;
}


.login-input-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    width: 18px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #8993a5;

    font-size: 14px;
    font-weight: 600;

    pointer-events: none;
}


.login-input {
    width: 100%;
    height: 52px;

    padding: 0 16px 0 46px;

    color: var(--auth-text);

    background: var(--auth-white);

    border: 1px solid var(--auth-border);
    border-radius: 10px;

    outline: none;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.login-input::placeholder {
    color: #a3abba;
}


.login-input:hover {
    border-color: #cdd4e0;
}


.login-input:focus {
    border-color: var(--auth-primary);

    background: #fff;

    box-shadow:
        0 0 0 3px rgba(49, 87, 213, 0.09);
}


/* ==========================================================
   PASSWORD
   ========================================================== */

.login-password-toggle {
    position: absolute;

    top: 50%;
    right: 13px;

    transform: translateY(-50%);

    padding: 5px 6px;

    color: var(--auth-primary);

    background: transparent;

    border: 0;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}


.login-password-toggle:hover {
    color: var(--auth-primary-dark);
}


#login-password {
    padding-right: 60px;
}


/* ==========================================================
   FORGOT PASSWORD
   ========================================================== */

.login-forgot {
    color: var(--auth-primary);

    font-size: 11px;
    font-weight: 500;

    text-decoration: none;

    transition: color 0.2s ease;
}


.login-forgot:hover {
    color: var(--auth-primary-dark);

    text-decoration: underline;
}


/* ==========================================================
   VALIDATION ERRORS
   ========================================================== */

.login-field__error {
    display: flex;
    flex-direction: column;
    gap: 3px;

    margin-top: 7px;

    color: var(--auth-danger);

    font-size: 10px;
    line-height: 1.5;
}


.login-field:has(
    .login-field__error
) .login-input {
    border-color: #e6aaa3;
}


.login-field:has(
    .login-field__error
) .login-input:focus {
    border-color: var(--auth-danger);

    box-shadow:
        0 0 0 3px rgba(192, 57, 43, 0.08);
}


/* ==========================================================
   REMEMBER ME
   ========================================================== */

.login-options {
    margin: 2px 0 24px;
}


.login-checkbox {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    cursor: pointer;

    user-select: none;
}


.login-checkbox input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.login-checkbox__box {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff;

    border: 1px solid #cdd4e0;
    border-radius: 4px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


.login-checkbox input:checked
+ .login-checkbox__box {
    background: var(--auth-primary);

    border-color: var(--auth-primary);
}


.login-checkbox input:checked
+ .login-checkbox__box::after {
    content: "";

    width: 7px;
    height: 4px;

    margin-top: -2px;

    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;

    transform: rotate(-45deg);
}


.login-checkbox input:focus-visible
+ .login-checkbox__box {
    outline: 3px solid rgba(49, 87, 213, 0.12);
    outline-offset: 1px;
}


.login-checkbox__text {
    color: var(--auth-muted);

    font-size: 11px;
}


/* ==========================================================
   SUBMIT
   ========================================================== */

.login-submit {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    color: #fff;

    background: var(--auth-primary);

    border: 1px solid var(--auth-primary);
    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(49, 87, 213, 0.16);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.login-submit:hover {
    background: var(--auth-primary-dark);

    border-color: var(--auth-primary-dark);

    box-shadow:
        0 10px 24px rgba(49, 87, 213, 0.2);

    transform: translateY(-1px);
}


.login-submit:active {
    transform: translateY(0);
}


.login-submit:focus-visible {
    outline: 3px solid rgba(49, 87, 213, 0.16);
    outline-offset: 2px;
}


/* ==========================================================
   VERIFICATION
   ========================================================== */

.login-verification {
    margin-top: 22px;

    color: var(--auth-muted);

    font-size: 11px;
    line-height: 1.7;

    text-align: center;
}


.login-verification a {
    color: var(--auth-primary);

    font-weight: 600;

    text-decoration: none;
}


.login-verification a:hover {
    color: var(--auth-primary-dark);

    text-decoration: underline;
}


/* ==========================================================
   SECURITY NOTE
   ========================================================== */

.login-security {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 30px;
    padding: 13px 14px;

    background: #f1f7f5;

    border: 1px solid #d9eee6;
    border-radius: 9px;
}


.login-security__icon {
    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 1px;

    color: var(--auth-success);

    background: #dff3eb;

    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;
}


.login-security p {
    color: #587168;

    font-size: 10px;
    line-height: 1.6;
}


/* ==========================================================
   BACK HOME
   ========================================================== */

.login-back {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 26px;

    color: var(--auth-muted);

    font-size: 11px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}


.login-back span {
    font-size: 15px;
}


.login-back:hover {
    gap: 10px;

    color: var(--auth-primary);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .login-header {
        margin-bottom: 28px;
    }


    .login-header h2 {
        font-size: 28px;
    }


    .login-header p {
        font-size: 12px;
    }


    .login-field {
        margin-bottom: 19px;
    }


    .login-input {
        height: 50px;

        font-size: 12px;
    }


    .login-submit {
        height: 50px;
    }


    .login-security {
        margin-top: 24px;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 380px) {

    .login-field__label-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }


    .login-field__label-row
    .login-field__label {
        margin-bottom: 0;
    }


    .login-forgot {
        font-size: 10px;
    }
}