 /* ============================================================
        TOKENS & RESET
============================================================ */
:root {
    --navbar: #489EE7;
    --sidebar: #2A2D34;
    --sidebar-hover: #3A3E47;
    --sidebar-active: #4A4D57;
    --page: #F4F6F9;
    --paper: #FFFFFF;
    --line: #E8ECF1;
    --ink: #1A1D24;
    --slate: #2F333A;
    --slate-60: #7A828F;

    --brass: #E8893A;
    --brass-light: #F5D6B0;
    --brass-soft: #FDF0E3;
    --blue: #489EE7;
    --teal: #16A085;
    --indigo: #6C5CE7;
    --rust: #E5484D;
    --green: #2E9E5B;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 4px 24px rgba(20, 20, 30, 0.06), 0 1px 4px rgba(20, 20, 30, 0.04);
    --shadow-elevated: 0 12px 48px rgba(20, 20, 30, 0.10), 0 2px 8px rgba(20, 20, 30, 0.04);
    --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    background: var(--page);
    color: var(--slate);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.display-font {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -0.015em;
}

.text-brass {
    color: var(--brass) !important;
}
.text-muted-slate {
    color: var(--slate-60) !important;
}
.bg-page {
    background-color: var(--page) !important;
}
.font-mono {
    font-family: var(--font-mono);
}

/* ============================================================
        BUTTONS
        ============================================================ */
.btn-brass {
    background: var(--brass);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-brass:hover,
.btn-brass:focus {
    background: #d67a2e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(232, 137, 58, 0.30);
}
.btn-brass:active {
    transform: translateY(0);
}

.btn-outline-ink {
    color: var(--slate);
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-outline-ink:hover {
    background: var(--page);
    border-color: #c8ced6;
    color: var(--ink);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(232, 137, 58, 0.20) !important;
    border-color: var(--brass) !important;
}

/* ============================================================
        FORM
        ============================================================ */
.form-control {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--slate);
    transition: var(--transition);
}
.form-control::placeholder {
    color: #b0b8c3;
    font-weight: 400;
}
.form-control:focus {
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(232, 137, 58, 0.15);
}
.form-control-lg {
    padding: 0.75rem 1.1rem;
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--slate-60);
    margin-bottom: 0.35rem;
}

.input-group {
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.input-group .form-control {
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group .btn-outline-secondary {
    border: 1px solid var(--line);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #fff;
    color: var(--slate-60);
    padding: 0 1rem;
    transition: var(--transition);
}
.input-group .btn-outline-secondary:hover {
    background: var(--page);
    color: var(--slate);
}

.form-check {
    min-height: auto;
}
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid #d0d6de;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.1rem;
}
.form-check-input:checked {
    background-color: var(--brass);
    border-color: var(--brass);
}
.form-check-label {
    font-size: 0.9rem;
    color: var(--slate);
    cursor: pointer;
    padding-left: 0.1rem;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--brass);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.forgot-link:hover {
    color: #d67a2e;
    text-decoration: underline;
}

/* ============================================================
        AUTH SHELL
        ============================================================ */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--page);
}

/* ——— Brand panel ——— */
.auth-brand {
    background: radial-gradient(ellipse at 20% 20%, #489EE7, #23262B 80%);
    position: relative;
    overflow: hidden;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}
.auth-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 80%, rgba(232, 137, 58, 0.06), transparent 60%);
    pointer-events: none;
}
.auth-brand>* {
    position: relative;
    z-index: 1;
}

.auth-brand .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--brass);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.auth-brand .brand-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.auth-brand .tagline {
    color: #F6F1E7;
    font-weight: 400;
    line-height: 1.2;
}
.auth-brand .tagline-sub {
    color: rgba(246, 241, 231, 0.6);
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-brand .stat-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}
.auth-brand .stat-strip .stat-value {
    color: #F6F1E7;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.auth-brand .stat-strip .stat-label {
    color: rgba(246, 241, 231, 0.5);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* decorative accent line */
.auth-brand .accent-line {
    width: 48px;
    height: 3px;
    background: var(--brass);
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ——— Form panel ——— */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2.5rem 2rem;
    background: var(--page);
}

.auth-form-panel .form-container {
    width: 100%;
    max-width: 400px;
}

.auth-form-panel .mobile-brand {
    display: none;
}

.auth-form-panel .welcome-title {
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.auth-form-panel .welcome-sub {
    color: var(--slate-60);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* sign-in divider */
.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--slate-60);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.footer-link {
    color: var(--brass);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.footer-link:hover {
    color: #d67a2e;
    text-decoration: underline;
}

/* ============================================================
        RESPONSIVE
        ============================================================ */
@media (max-width: 991.98px) {
    .auth-brand {
        display: none !important;
    }
    .auth-form-panel {
        padding: 2rem 1.5rem;
    }
    .auth-form-panel .mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    .auth-form-panel .mobile-brand .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        background: var(--brass);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.1rem;
    }
    .auth-form-panel .mobile-brand .brand-name {
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--ink);
    }
    .auth-form-panel .form-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-form-panel {
        padding: 1.5rem 1rem;
    }
    .auth-form-panel .welcome-title {
        font-size: 1.4rem;
    }
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
    }
    .form-control-lg {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }
}

/* ============================================================
        UTILITY — subtle entrance
        ============================================================ */
.fade-in {
    animation: fadeIn 0.5s ease both;
}
.fade-in-delay-1 {
    animation-delay: 0.08s;
}
.fade-in-delay-2 {
    animation-delay: 0.16s;
}
.fade-in-delay-3 {
    animation-delay: 0.24s;
}
.fade-in-delay-4 {
    animation-delay: 0.32s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
        SCROLLBAR (optional polish)
        ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d0d6de;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8c0cb;
}