.auth-page {
    --auth-ink: #182235;
    --auth-muted: #687386;
    --auth-border: #d4dce7;
    --auth-blue: #3568d4;
    --auth-blue-dark: #234da8;
    --auth-red: #d95151;
    --auth-orange: #e58737;

    display: flex;
    min-height: calc(100vh - 2rem);
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: var(--auth-ink);
    background:
        radial-gradient(circle at 85% 15%, rgba(53, 104, 212, 0.08), transparent 320px),
        #f2f4f7;
}

.auth-shell {
    display: grid;
    width: min(920px, 100%);
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
    overflow: hidden;
    border: 1px solid #ced6e1;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 2px 5px rgba(24, 34, 53, 0.04),
        0 16px 45px rgba(24, 34, 53, 0.13);
}


/* ------------------------------------------------------------
   Brand panel
   ------------------------------------------------------------ */

.auth-brand-panel {
    position: relative;
    display: flex;
    min-height: 590px;
    flex-direction: column;
    padding: 2rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 110% 5%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 120px, transparent 121px),
        radial-gradient(circle at -20% 105%, rgba(73, 137, 255, 0.22) 0, rgba(73, 137, 255, 0.22) 190px, transparent 191px),
        linear-gradient(145deg, #17243c 0%, #203e72 58%, #3568d4 100%);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
}

.auth-brand:hover {
    color: #fff;
}

.auth-brand-mark {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
    font-weight: 800;
}

.auth-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.auth-brand-name {
    font-size: 1.05rem;
    font-weight: 725;
}

.auth-brand-subtitle {
    color: #a8bfdf;
    font-size: 0.62rem;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    margin: auto 0;
}

.auth-brand-eyebrow {
    margin-bottom: 0.55rem;
    color: #b9d0fa;
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.15em;
}

.auth-brand-content h1 {
    max-width: 330px;
    margin: 0;
    font-size: 2.05rem;
    font-weight: 725;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.auth-brand-content p {
    max-width: 330px;
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.84rem;
    line-height: 1.55;
}

.auth-brand-footer {
    position: relative;
    z-index: 1;
    color: #9cb1d0;
    font-size: 0.65rem;
}

.auth-brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    border-radius: 9px;
}


/* ------------------------------------------------------------
   Form panel
   ------------------------------------------------------------ */

.auth-form-panel {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    padding: 2.25rem 2.4rem;
}

.auth-form-header {
    margin-bottom: 1.25rem;
}

.auth-eyebrow {
    margin-bottom: 0.35rem;
    color: var(--auth-blue);
    font-size: 0.63rem;
    font-weight: 750;
    letter-spacing: 0.13em;
}

.auth-form-header h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: 1.45rem;
    font-weight: 725;
    letter-spacing: -0.025em;
}

.auth-form-header p {
    margin: 0.35rem 0 0;
    color: var(--auth-muted);
    font-size: 0.75rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
}

.auth-field label {
    margin-bottom: 0.3rem;
    color: #566174;
    font-size: 0.72rem;
    font-weight: 650;
}

.auth-field .form-control {
    min-height: 43px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    box-shadow: none;
    font-size: 0.84rem;
}

.auth-field .form-control:focus {
    border-color: #8eafea;
    box-shadow: 0 0 0 0.18rem rgba(53, 104, 212, 0.11);
}

.auth-field .validation-message,
.auth-field > div.validation-message {
    margin-top: 0.25rem;
    color: var(--auth-red);
    font-size: 0.67rem;
}

.auth-validation-summary {
    margin: 0;
    padding-left: 1rem;
    color: var(--auth-red);
    font-size: 0.68rem;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    color: #626e80;
    cursor: pointer;
    font-size: 0.72rem;
}

.auth-checkbox .form-check-input {
    margin: 0;
}

.auth-checkbox .form-check-input:checked {
    border-color: var(--auth-blue);
    background-color: var(--auth-blue);
}


/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.auth-primary-button {
    width: 100%;
    min-height: 43px;
    margin-top: 0.15rem;
    border-color: var(--auth-blue);
    border-radius: 8px;
    background: var(--auth-blue);
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-primary-button:hover {
    border-color: var(--auth-blue-dark);
    background: var(--auth-blue-dark);
}

.auth-secondary-button {
    display: flex;
    width: 100%;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd4df;
    border-radius: 8px;
    color: #526074;
    background: #fff;
    font-size: 0.76rem;
    font-weight: 650;
    text-decoration: none;
}

.auth-secondary-button:hover {
    border-color: #aab5c4;
    color: #26354d;
    background: #f7f9fc;
}


/* ------------------------------------------------------------
   Status
   ------------------------------------------------------------ */

.auth-status {
    margin-bottom: 1rem;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    font-size: 0.71rem;
    line-height: 1.4;
}

.auth-status.error {
    border: 1px solid #ebc4c4;
    border-left: 3px solid var(--auth-red);
    color: #853d3d;
    background: #fff5f5;
}

.auth-status.warning {
    border: 1px solid #ecd2ad;
    border-left: 3px solid var(--auth-orange);
    color: #85541f;
    background: #fff8ef;
}


/* ------------------------------------------------------------
   Divider / external login
   ------------------------------------------------------------ */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #9aa2ae;
    font-size: 0.58rem;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: #e0e4ea;
}

.auth-external-login {
    padding-top: 0.85rem;
    border-top: 1px solid #e4e8ee;
}

.auth-external-title {
    margin-bottom: 0.45rem;
    color: #727d8d;
    font-size: 0.65rem;
    font-weight: 650;
}


/* ------------------------------------------------------------
   Invite CTA / footer
   ------------------------------------------------------------ */

.auth-invite-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid #d6e0f2;
    border-left: 3px solid var(--auth-blue);
    border-radius: 8px;
    background: #f6f9fe;
}

.auth-invite-callout > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.auth-invite-callout strong {
    color: #3d4a5f;
    font-size: 0.7rem;
}

.auth-invite-callout span {
    margin-top: 0.08rem;
    color: #7a8493;
    font-size: 0.63rem;
}

.auth-invite-button {
    flex: 0 0 auto;
    border: 1px solid #aabce0;
    border-radius: 7px;
    color: #315fae;
    background: #fff;
    font-size: 0.69rem;
    font-weight: 700;
}

.auth-invite-button:hover {
    border-color: var(--auth-blue);
    color: #fff;
    background: var(--auth-blue);
}

.auth-footer-link {
    margin-top: 1.25rem;
    color: #7c8797;
    font-size: 0.7rem;
    text-align: center;
}

.auth-footer-link a {
    margin-left: 0.15rem;
    color: var(--auth-blue);
    font-weight: 650;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}


/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .auth-page {
        min-height: 100vh;
        align-items: flex-start;
        padding: 0;
        background: #fff;
    }

    .auth-shell {
        display: block;
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-brand-panel {
        min-height: 0;
        padding: 1rem 1.1rem 1.25rem;
    }

    .auth-brand-mark {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .auth-brand-subtitle,
    .auth-brand-footer {
        display: none;
    }

    .auth-brand-content {
        margin: 1.5rem 0 0;
    }

    .auth-brand-content h1 {
        font-size: 1.55rem;
    }

    .auth-brand-content p {
        margin-top: 0.5rem;
        font-size: 0.75rem;
    }

    .auth-form-panel {
        padding: 1.4rem 1.1rem 2rem;
    }

    .auth-form-header h2 {
        font-size: 1.3rem;
    }

    .auth-invite-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-invite-button {
        width: 100%;
        text-align: center;
    }
}