@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ==============================================================================
   PREMIUM B2B LOGISTICS SAAS AUTHENTICATION DESIGN SYSTEM
   All colors dynamically bound to .env configuration via CSS custom properties.
   ============================================================================== */

:root {
    --auth-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Theme configuration defaults (overridden dynamically by partials/theme_css) */
    --theme-primary-color: #00285A;
    --theme-secondary-color: #FF6600;
    --theme-hover-color: #003366;
    --theme-new-prime-color: #FF6600;
    --theme-new-second-color: #F8F9FB;
    --theme-tertiary-color: #FFFFFF;
    --theme-btn-light-bg: #FFE1D6;
    --theme-main-bg: #F8F9FB;
    --theme-text-primary: #0F172A;
    --theme-text-secondary: #64748B;
    --theme-border-color: #E2E8F0;
    --theme-sidebar-color: #00285A;
    --theme-success-color: #10B981;
    --theme-warning-color: #F59E0B;
    --theme-danger-color: #EF4444;

    /* RGB triplets for dynamic alpha/translucency */
    --theme-primary-rgb: 0, 40, 90;
    --theme-secondary-rgb: 255, 102, 0;
    --theme-hover-rgb: 0, 51, 102;
    --theme-sidebar-rgb: 0, 40, 90;
    --theme-main-bg-rgb: 248, 249, 251;
    --theme-text-primary-rgb: 15, 23, 42;
    --theme-border-rgb: 226, 232, 240;
    --theme-success-rgb: 16, 185, 129;
    --theme-warning-rgb: 245, 158, 11;
    --theme-danger-rgb: 239, 68, 68;

    /* Auth semantic aliases */
    --auth-primary: var(--theme-primary-color);
    --auth-primary-hover: var(--theme-hover-color);
    --auth-accent: var(--theme-secondary-color);
    --auth-bg-light: var(--theme-main-bg);
    --auth-card-bg: var(--theme-tertiary-color);
    --auth-border: var(--theme-border-color);
    --auth-text-main: var(--theme-text-primary);
    --auth-text-muted: var(--theme-text-secondary);
    --auth-hero-bg: var(--theme-sidebar-color);
}

/* Base Reset & Smooth Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--auth-font);
    background: var(--theme-main-bg);
    color: var(--theme-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==============================================================================
   SPLIT-SCREEN AUTHENTICATION SHELL (Desktop 40-45% Left / 55-60% Right)
   ============================================================================== */
.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--theme-main-bg);
    position: relative;
    overflow-x: hidden;
}

@media (min-width: 992px) {
    .auth-shell-login {
        grid-template-columns: 42% 58%;
    }
    .auth-shell-register {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1400px) {
    .auth-shell-login {
        grid-template-columns: 40% 60%;
    }
    .auth-shell-register {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* ==============================================================================
   LEFT SIDE — LOGIN CONTAINER & BACKGROUND TEXTURE
   ============================================================================== */
.auth-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.75rem;
    position: relative;
    background: var(--theme-main-bg);
    min-height: 100vh;
    z-index: 1;
}

@media (max-width: 576px) {
    .auth-form-side {
        padding: 1.5rem 1rem;
    }
}

/* Subtle Technical Micro-Mesh Lattice */
.auth-mesh-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(rgba(var(--theme-primary-rgb), 0.05) 1px, transparent 1px),
        linear-gradient(to right, rgba(var(--theme-text-primary-rgb), 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--theme-text-primary-rgb), 0.02) 1px, transparent 1px);
    background-size: 24px 24px, 32px 32px, 32px 32px;
    opacity: 0.9;
}

/* ==============================================================================
   LOGIN CARD (14-20px radius, clean shadow, thin border, compact)
   ============================================================================== */
.auth-card-glow {
    position: relative;
    width: 100%;
    max-width: 440px;
    z-index: 10;
    margin: auto 0;
}

.auth-card-glow-wide {
    max-width: 660px;
}

.auth-card-inner {
    background: var(--theme-tertiary-color);
    border: 1px solid var(--theme-border-color);
    border-radius: 18px;
    box-shadow: 
        0 1px 3px rgba(var(--theme-text-primary-rgb), 0.03),
        0 8px 18px -4px rgba(var(--theme-text-primary-rgb), 0.05),
        0 20px 32px -8px rgba(var(--theme-text-primary-rgb), 0.06);
    padding: 2.25rem 2.25rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 576px) {
    .auth-card-inner {
        padding: 1.85rem 1.35rem;
        border-radius: 16px;
    }
}

.auth-card-inner-wide {
    padding: 2.25rem 2.25rem;
}

/* Brand Logo Container */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
}

.auth-brand-img,
.auth-brand img {
    height: 38px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Portal Badge Row & Pill */
.auth-badge-row {
    margin-bottom: 0.75rem;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--theme-secondary-color);
    background: rgba(var(--theme-secondary-rgb), 0.09);
    border: 1px solid rgba(var(--theme-secondary-rgb), 0.22);
    border-radius: 9999px;
    padding: 4px 10px;
    line-height: 1;
}

.auth-eyebrow i {
    font-size: 13px;
    line-height: 1;
}

/* Main Heading & Subtitle */
.auth-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--theme-text-primary);
    letter-spacing: -0.03em;
    margin: 0 0 0.4rem 0;
    line-height: 1.25;
}

.auth-subtitle {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Modern Alerts */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.auth-alert-success {
    background: rgba(var(--theme-success-rgb), 0.1);
    border: 1px solid rgba(var(--theme-success-rgb), 0.28);
    color: var(--theme-success-color);
}

.auth-alert-danger {
    background: rgba(var(--theme-danger-rgb), 0.1);
    border: 1px solid rgba(var(--theme-danger-rgb), 0.28);
    color: var(--theme-danger-color);
}

/* ==============================================================================
   FORM FIELDS & INPUT STATES
   ============================================================================== */
.auth-field {
    margin-bottom: 1.15rem;
    position: relative;
}

.auth-label,
.auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-icon,
.auth-input-wrap i:first-child {
    position: absolute;
    left: 13px;
    font-size: 18px;
    color: var(--theme-text-secondary);
    pointer-events: none;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.auth-input,
.auth-select,
.auth-textarea {
    width: 100%;
    height: 44px;
    background: var(--theme-tertiary-color);
    border: 1.5px solid var(--theme-border-color);
    border-radius: 10px;
    padding: 0 14px 0 40px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--theme-text-primary);
    font-family: var(--auth-font);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input.no-icon {
    padding-left: 14px;
}

.auth-textarea {
    height: 70px;
    padding: 10px 14px;
    resize: vertical;
}

.auth-select {
    padding-left: 14px;
    cursor: pointer;
    appearance: auto;
}

.auth-input::placeholder,
.auth-textarea::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* Input Focus States — Uses .env primary color dynamically */
.auth-input:focus,
.auth-select:focus,
.auth-textarea:focus {
    outline: none;
    border-color: var(--theme-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.14);
    background: var(--theme-tertiary-color);
}

.auth-input-wrap:focus-within .auth-input-icon,
.auth-input-wrap:focus-within i:first-child {
    color: var(--theme-primary-color);
}

/* Input Invalid / Error State — Uses .env danger color dynamically */
.auth-input.is-invalid {
    border-color: var(--theme-danger-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-danger-rgb), 0.14) !important;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--theme-danger-color);
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

/* Password Toggle Action */
.auth-pw-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    z-index: 2;
}

.auth-pw-toggle:hover {
    color: var(--theme-primary-color);
}

/* Links & Remember Me Row */
.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
    font-size: 13px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin: 0;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--theme-primary-color);
    cursor: pointer;
}

.auth-link-row a,
.auth-forgot-link,
.auth-footer-text a,
.auth-register-link {
    color: var(--theme-primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link-row a:hover,
.auth-forgot-link:hover,
.auth-footer-text a:hover,
.auth-register-link:hover {
    color: var(--theme-hover-color);
    text-decoration: underline;
}

/* ==============================================================================
   PRIMARY ACTION BUTTON (Dynamic Primary Color & Hover Color from .env)
   ============================================================================== */
.auth-btn {
    width: 100%;
    height: 46px;
    background: var(--theme-primary-color);
    color: var(--theme-tertiary-color);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.1);
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: var(--auth-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--theme-primary-rgb), 0.28);
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-btn:hover {
    background: var(--theme-hover-color);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(var(--theme-primary-rgb), 0.38);
    color: var(--theme-tertiary-color);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), 0.22);
}

.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.auth-btn i {
    font-size: 17px;
    transition: transform 0.15s ease;
}

.auth-btn:hover i:not(.mdi-loading) {
    transform: translateX(3px);
}

/* Footer / Switch link */
.auth-footer-text {
    text-align: center;
    font-size: 13.5px;
    color: var(--theme-text-secondary);
    margin: 1.35rem 0 0 0;
}

/* Trust footer line */
.auth-card-footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border-color);
}

.auth-card-footer-trust i {
    color: var(--theme-success-color);
    font-size: 14px;
}

/* ==============================================================================
   RIGHT SIDE — LOGISTICS SHOWCASE EXPERIENCE (55-60% Desktop)
   ============================================================================== */
.auth-hero {
    background: 
        radial-gradient(ellipse 80% 50% at 85% -10%, rgba(var(--theme-secondary-rgb), 0.16), transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 110%, rgba(var(--theme-hover-rgb), 0.35), transparent 70%),
        linear-gradient(155deg, var(--theme-sidebar-color) 0%, #030816 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 3.5rem;
    overflow: hidden;
    color: var(--theme-tertiary-color);
    border-left: 1px solid rgba(var(--theme-border-rgb), 0.12);
}

/* Subtle Technical Ambient Mesh */
.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(var(--theme-tertiary-color), 0.04) 1px, transparent 1px),
        linear-gradient(to right, rgba(var(--theme-tertiary-color), 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--theme-tertiary-color), 0.02) 1px, transparent 1px);
    background-size: 32px 32px, 48px 48px, 48px 48px;
    opacity: 0.8;
    pointer-events: none;
}

.auth-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
}

/* Hero Badge */
.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(var(--theme-tertiary-color), 0.07);
    border: 1px solid rgba(var(--theme-tertiary-color), 0.15);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 1.15rem;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
}

.auth-hero-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--theme-success-color);
    box-shadow: 0 0 10px var(--theme-success-color);
    display: inline-block;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--theme-success-rgb), 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(var(--theme-success-rgb), 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(var(--theme-success-rgb), 0); }
}

.auth-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--theme-tertiary-color);
    margin: 0 0 0.85rem 0;
}

.auth-hero-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94A3B8;
    margin-bottom: 1.75rem;
}

/* ==============================================================================
   LOGISTICS VISUAL — DASHBOARD-STYLE SHIPMENT TELEMETRY CARD
   ============================================================================== */
.auth-preview-card {
    background: rgba(var(--theme-tertiary-color), 0.04);
    border: 1px solid rgba(var(--theme-tertiary-color), 0.12);
    border-radius: 16px;
    padding: 1.35rem 1.45rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 1.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.auth-preview-card:hover {
    border-color: rgba(var(--theme-secondary-rgb), 0.35);
}

.auth-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(var(--theme-tertiary-color), 0.08);
}

.auth-preview-carrier {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-carrier-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(var(--theme-secondary-rgb), 0.16);
    color: var(--theme-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.auth-carrier-info {
    display: flex;
    flex-direction: column;
}

.auth-carrier-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--theme-tertiary-color);
    line-height: 1.2;
}

.auth-carrier-awb {
    font-size: 11.5px;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.02em;
}

.auth-preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--theme-success-rgb), 0.15);
    color: var(--theme-success-color);
    border: 1px solid rgba(var(--theme-success-rgb), 0.35);
    padding: 3.5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-status-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-success-color);
    box-shadow: 0 0 6px var(--theme-success-color);
}

/* Route Origin & Destination Flow */
.auth-route-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 4px 2px;
}

.auth-route-node {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-route-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.auth-route-dot.origin {
    background: var(--theme-secondary-color);
    box-shadow: 0 0 8px var(--theme-secondary-color);
}

.auth-route-dot.dest {
    background: var(--theme-success-color);
    box-shadow: 0 0 8px var(--theme-success-color);
}

.auth-route-details {
    display: flex;
    flex-direction: column;
}

.auth-route-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #94A3B8;
    letter-spacing: 0.05em;
}

.auth-route-city {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--theme-tertiary-color);
}

.auth-route-connector {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 16px;
}

.auth-route-line {
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(var(--theme-secondary-rgb), 0.5) 0, rgba(var(--theme-secondary-rgb), 0.5) 6px, transparent 6px, transparent 12px);
}

.auth-route-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(var(--theme-sidebar-rgb), 0.95);
    border: 1px solid rgba(var(--theme-secondary-rgb), 0.45);
    color: var(--theme-secondary-color);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.auth-route-badge i {
    font-size: 13px;
    line-height: 1;
}

/* Milestone Step Progress Tracker */
.auth-milestone-track {
    margin-bottom: 1rem;
}

.auth-milestone-bar {
    height: 5px;
    background: rgba(var(--theme-tertiary-color), 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.auth-milestone-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--theme-secondary-color) 0%, var(--theme-success-color) 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.auth-milestone-steps {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #94A3B8;
}

.step-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10.5px;
}

.step-label.step-done {
    color: #CBD5E1;
}

.step-label.step-active {
    color: var(--theme-success-color);
    font-weight: 700;
}

.step-label.step-pending {
    color: #64748B;
}

/* Shipment Meta Grid */
.auth-preview-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: rgba(var(--theme-tertiary-color), 0.03);
    border: 1px solid rgba(var(--theme-tertiary-color), 0.06);
    border-radius: 10px;
    padding: 10px 12px;
}

.auth-meta-item {
    display: flex;
    flex-direction: column;
}

.auth-meta-k {
    font-size: 10.5px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.auth-meta-v {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--theme-tertiary-color);
    margin-top: 2px;
}

.auth-meta-v.eta-badge {
    color: var(--theme-secondary-color);
}

.auth-meta-v.ndr-badge {
    color: var(--theme-success-color);
}

/* ==============================================================================
   4 PLATFORM CAPABILITIES GRID (Clean Cards & Icons)
   ============================================================================== */
.auth-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .auth-capabilities-grid {
        grid-template-columns: 1fr;
    }
}

.auth-cap-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(var(--theme-tertiary-color), 0.04);
    border: 1px solid rgba(var(--theme-tertiary-color), 0.09);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.auth-cap-card:hover {
    background: rgba(var(--theme-tertiary-color), 0.07);
    border-color: rgba(var(--theme-secondary-rgb), 0.3);
    transform: translateY(-1.5px);
}

.auth-cap-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(var(--theme-secondary-rgb), 0.14);
    color: var(--theme-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-cap-content {
    display: flex;
    flex-direction: column;
}

.auth-cap-tag {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: var(--theme-secondary-color);
    line-height: 1;
    margin-bottom: 2px;
}

.auth-cap-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--theme-tertiary-color);
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.auth-cap-desc {
    font-size: 11px;
    color: #94A3B8;
    margin: 0;
    line-height: 1.35;
}

/* ==============================================================================
   METRICS / SLA TICKER STRIP
   ============================================================================== */
.auth-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(var(--theme-tertiary-color), 0.03);
    border: 1px solid rgba(var(--theme-tertiary-color), 0.08);
    border-radius: 12px;
    padding: 10px 16px;
}

.auth-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.auth-stat-num {
    font-size: 15px;
    font-weight: 800;
    color: var(--theme-tertiary-color);
    line-height: 1.1;
}

.auth-stat-lbl {
    font-size: 10.5px;
    color: #94A3B8;
    margin-top: 2px;
}

.auth-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(var(--theme-tertiary-color), 0.1);
}

/* ==============================================================================
   OTP VERIFICATION & REGISTER EXTENSIONS (Backward Compatibility)
   ============================================================================== */
.auth-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    background: #F1F5F9;
    padding: 5px 10px;
    border-radius: 6px;
    margin: 1rem 0 0.85rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.otp-digits {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 1.5rem 0;
}

.otp-digit {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    border: 1.5px solid var(--theme-border-color);
    border-radius: 12px;
    background: var(--theme-tertiary-color);
    color: var(--theme-text-primary);
    font-family: var(--auth-font);
    transition: all 0.15s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--theme-primary-color);
    box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.14);
}

.otp-actions {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--theme-border-color);
}

.otp-resend-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.75rem;
}

.otp-resend-btn {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.otp-resend-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.otp-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.otp-modal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 10px;
}
