/* ==========================================================================
   SmartPost360 - authentication pages
   Split screen: brand panel left, form right. Panel collapses below 992px.
   ========================================================================== */

:root {
    --sp-navy: #0E356F;
    --sp-navy-dark: #082347;
    --sp-vermilion: #F04E23;
    --sp-vermilion-light: #FF7A5C;
    --sp-action: #1D63D2;
    --sp-slate: #6B7A90;
}

/* Brand colour overrides the Frest primary, so buttons and links pick it up */
.btn-primary {
    background-color: var(--sp-navy) !important;
    border-color: var(--sp-navy) !important;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: var(--sp-navy-dark) !important;
        border-color: var(--sp-navy-dark) !important;
    }

    .btn-primary:disabled {
        background-color: var(--sp-slate) !important;
        border-color: var(--sp-slate) !important;
    }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- Shell ---------- */
.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---------- Left: brand panel ---------- */
.auth-brand {
    flex: 0 0 46%;
    max-width: 46%;
    background: linear-gradient(150deg, var(--sp-navy) 0%, var(--sp-navy-dark) 100%);
    color: #fff;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    /* Soft vermilion glow, bottom-left */
    .auth-brand::after {
        content: '';
        position: absolute;
        width: 460px;
        height: 460px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(240,78,35,0.22) 0%, transparent 68%);
        bottom: -190px;
        left: -140px;
        pointer-events: none;
    }

.auth-brand-inner {
    position: relative;
    z-index: 1;
    margin-top: auto;
    margin-bottom: auto;
}

.auth-brand-logo {
    width: 260px;
    max-width: 100%;
    margin-bottom: 2.5rem;
}

.auth-brand-title {
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 2rem;
    max-width: 22ch;
}

.auth-brand-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .auth-brand-points li {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
        margin-bottom: 1.05rem;
        font-size: 0.94rem;
        color: rgba(255,255,255,0.82);
        line-height: 1.5;
    }

    .auth-brand-points i {
        color: var(--sp-vermilion-light);
        font-size: 1.2rem;
        flex-shrink: 0;
        margin-top: 1px;
    }

.auth-brand-footer {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ---------- Right: form ---------- */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #fff;
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-mobile-mark {
    width: 210px;
    display: block;
    margin: 0 auto 2rem;
}

.auth-card {
    width: 100%;
}

.auth-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sp-navy);
    margin-bottom: 0.35rem;
}

.auth-subheading {
    color: var(--sp-slate);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
}

.auth-card .form-label {
    font-size: 0.86rem;
    font-weight: 500;
    color: #45526b;
    margin-bottom: 0.4rem;
}

.auth-card .input-group-text {
    background: #f7f8fa;
    border-right: 0;
    color: var(--sp-slate);
}

.auth-card .form-control {
    border-left: 0;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

    .auth-card .form-control:focus {
        border-color: var(--sp-action);
        box-shadow: none;
    }

/* Keep the icon border in step with the focused field */
.auth-card .input-group:focus-within .input-group-text {
    border-color: var(--sp-action);
}

.auth-card .btn-primary {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.auth-notice {
    text-align: center;
    font-size: 0.78rem;
    color: var(--sp-slate);
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.cursor-pointer {
    cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .auth-brand {
        display: none;
    }

    .auth-form-side {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .auth-form-side {
        padding: 1.5rem 1.25rem;
    }

    .auth-mobile-mark {
        width: 175px;
    }
}


/* Frest sets its own heading font, which is not loaded here, so headings fall
   back to the browser serif. Same rule as site.css - the auth pages use a
   separate layout and stylesheet. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.auth-heading,
.auth-brand-title,
.btn {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}