/* ChakraERP authentication screens.
   Colors, radius and button treatment are pulled from the app's own
   Navbar.css / site.css tokens (navy #034078/#003566, accent #1976ae→#1565c0,
   background #EEF5F9) so this page reads as the front door of the same product —
   see .submit-in-btn in site.css, reused here rather than redefined. */

.auth-shell {
    min-height: 100vh;
    background: #EEF5F9;
    display: flex;
    flex-direction: column;
}

.auth-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

/* ---- brand pane ---- */
.auth-brand {
    background: #034078;
    color: #eaf4fb;
    padding: clamp(32px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand__mark {
    margin-bottom: 36px;
}

.auth-brand__logo {
    display: block;
    height: 80px;
    width: auto;
}

.auth-brand__tagline {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0 0 14px;
}

.auth-brand__desc {
    color: #c7ddec;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 48ch;
    margin: 0 0 30px;
}

.auth-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

    .auth-benefits li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 0.95rem;
        color: #dbe9f2;
    }

    .auth-benefits svg {
        flex: none;
        width: 18px;
        height: 18px;
        margin-top: 2px;
        color: #2698d1;
    }

/* ---- sign-in pane ---- */
.auth-form-pane {
    background: #EEF5F9;
    padding: clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #d7e4ec;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(3, 64, 120, 0.12);
    padding: clamp(28px, 3.4vw, 42px);
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.auth-card__title {
    color: #003566;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.auth-card__subtitle {
    color: #4a6072;
    font-size: 0.92rem;
    margin: 0 0 26px;
}

.auth-field {
    margin-bottom: 18px;
}

    .auth-field label {
        display: block;
        font-weight: 600;
        font-size: 0.85rem;
        color: #01497c;
        margin-bottom: 7px;
    }

    .auth-field input {
        width: 100%;
        height: 46px;
        padding: 0 14px;
        font-size: 0.98rem;
        border: 1.5px solid #d7e4ec;
        border-radius: 9px;
        background: #EEF5F9;
        color: #0b1f2e;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .auth-field input:focus {
            outline: none;
            border-color: #1976ae;
            box-shadow: 0 0 0 3px #cae9ff;
        }

.auth-password-wrap {
    position: relative;
}

    .auth-password-wrap input {
        padding-right: 44px;
    }

.auth-password-toggle {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 34px;
    width: 34px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #4a6072;
    cursor: pointer;
    border-radius: 6px;
}

    .auth-password-toggle:hover {
        background: #EEF5F9;
    }

    .auth-password-toggle:focus-visible {
        outline: 2px solid #1976ae;
        outline-offset: 1px;
    }

    .auth-password-toggle svg {
        width: 18px;
        height: 18px;
    }

.auth-row-between {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 22px;
}

    .auth-row-between a {
        font-size: 0.85rem;
        font-weight: 600;
        color: #0162a6;
        text-decoration: none;
    }

        .auth-row-between a:hover {
            text-decoration: underline;
        }

/* .submit-in-btn (site.css) has no width rule of its own — it's normally dropped
   into button-group layouts. This login card needs it full-width. */
.auth-card .submit-in-btn {
    width: 100%;
    margin-bottom: 4px;
}

.auth-create-account {
    text-align: center;
    font-size: 0.87rem;
    color: #4a6072;
    margin-top: 20px;
}

    .auth-create-account a {
        color: #0162a6;
        font-weight: 700;
        text-decoration: none;
    }

        .auth-create-account a:hover {
            text-decoration: underline;
        }

.auth-validation-summary {
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.auth-footer {
    text-align: center;
    padding: 16px;
    font-size: 0.78rem;
    color: #5b7280;
}

.visible {
    display: block;
}

.hidden {
    display: none;
}

@media (max-width: 880px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 28px clamp(20px, 5vw, 40px);
    }

    .auth-brand__mark {
        margin-bottom: 20px;
    }

    .auth-brand__logo {
        height: 52px;
    }

    .auth-brand__desc,
    .auth-benefits {
        display: none;
    }

    .auth-brand__tagline {
        font-size: 1.35rem;
        margin-bottom: 0;
    }
}
