/* ═══════════════════════════════════════════════════════════
   Authentication — Split-Screen Layout
   Aligned with landing page aesthetic.
   ═══════════════════════════════════════════════════════════ */

#base-auth {
    background: #fff !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ══════════ LEFT PANEL — Dark, matches landing hero ══════════ */

.auth-left-panel {
    width: 44%;
    background: linear-gradient(160deg, #0a0e1a 0%, #111827 50%, #0f172a 100%);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Glow orbs — same as landing hero */
.auth-left-panel::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(39, 209, 150, 0.1) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}
.auth-left-panel::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(66, 83, 160, 0.08) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

/* Logo */
.auth-brand-logo {
    position: absolute;
    top: 2.5rem;
    left: 3.5rem;
}
.brand-logo-white {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Marketing Content */
.auth-marketing-content {
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.auth-marketing-content h1 {
    font-size: 2.125rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    color: #fff;
}
.auth-marketing-content p.lead-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Benefits — frosted glass cards, matching landing dark section */
.auth-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.auth-benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: background 0.2s;
}
.auth-benefit-item:hover {
    background: rgba(255, 255, 255, 0.07);
}
.auth-benefit-item i {
    width: 40px;
    height: 40px;
    background: rgba(39, 209, 150, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #27D196;
    font-size: 1rem;
    flex-shrink: 0;
}
.auth-benefit-item .benefit-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.125rem 0;
    color: #f1f5f9;
}
.auth-benefit-item .benefit-info p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.4;
}

/* ══════════ RIGHT PANEL — Form ══════════ */

.auth-right-panel {
    flex: 1;
    background: #fff;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

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

/* ── Auth Header ── */
.auth-header {
    margin-bottom: 2rem;
}
.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}
.auth-header p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ══════════ FORM CONTROLS ══════════ */

#base-auth .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    color: #374151;
}

#base-auth .form-control {
    padding: 0 0.875rem;
    border-radius: 8px;
    border: 1px solid #c0c5cc;
    font-size: 0.9375rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 44px;
    color: #111827;
    background: #f9fafb;
}
#base-auth .form-control:hover {
    border-color: #9ca3af;
    background: #fff;
}
#base-auth .form-control::placeholder { color: #9ca3af; }
#base-auth .form-control:focus {
    border-color: #27D196;
    box-shadow: 0 0 0 3px rgba(39, 209, 150, 0.1);
    outline: none;
}

/* ══════════ BUTTONS ══════════ */

#base-auth .btn-primary {
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    background: #27D196;
    border: 1px solid #27D196;
    color: #fff;
    height: 44px;
    transition: all 0.15s;
}
#base-auth .btn-primary:hover {
    background: #1EAE7A;
    border-color: #1EAE7A;
    box-shadow: 0 4px 12px rgba(39, 209, 150, 0.25);
}
#base-auth .btn-primary:active {
    transform: scale(0.98);
}
#base-auth .btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(39, 209, 150, 0.2);
}

#base-auth .btn-outline-secondary {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0 1.5rem;
    height: 44px;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #fff;
}
#base-auth .btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

#base-auth .btn-input {
    border-radius: 0 8px 8px 0;
    border: 1px solid #e5e7eb;
    border-left: 0;
    background: #fff;
    color: #9ca3af;
    font-size: 0.875rem;
    height: 44px;
    transition: color 0.15s;
}
#base-auth .btn-input:hover { color: #6b7280; }

/* ══════════ TEXT & LINKS ══════════ */

#base-auth a { color: #27D196; font-weight: 500; }
#base-auth a:hover { color: #1EAE7A; }

#base-auth a.small, #base-auth .small { font-size: 0.8125rem; }
#base-auth .text-muted { font-size: 0.875rem; color: #6b7280 !important; }
#base-auth .invalid-feedback { font-size: 0.8125rem; margin-top: 0.375rem; }

/* ══════════ CTA BOX — Dark, matches landing CTA sections ══════════ */

.auth-cta-box {
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: #0f172a;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}
.auth-cta-box p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.6);
}
.auth-cta-box .btn-outline-white {
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    background: transparent;
    transition: all 0.15s;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}
.auth-cta-box .btn-outline-white:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
}
.auth-cta-box a.small { color: rgba(255,255,255,0.45) !important; font-size: 0.8125rem; }
.auth-cta-box a.small:hover { color: rgba(255,255,255,0.7) !important; }

/* ══════════ SIGN-UP STEPS ══════════ */

.auth-steps {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.auth-step {
    height: 3px;
    flex: 1;
    background: #e5e7eb;
    border-radius: 2px;
    transition: background 0.3s;
}
.auth-step.active {
    background: #27D196;
}

#base-auth h3.h6, #base-auth h3.h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

/* ══════════ MISC ══════════ */

#base-auth small, #base-auth .form-text { font-size: 0.8125rem; color: #9ca3af; }
#base-auth .form-check-label { font-size: 0.875rem; color: #374151; }
#base-auth .input-group .form-control { border-radius: 8px 0 0 8px; }
#base-auth .alert { font-size: 0.8125rem; border-radius: 8px; padding: 0.75rem 1rem; }
#base-auth .max-width-140 { max-width: 140px; }
#base-auth ol { font-size: 0.875rem; line-height: 1.7; color: #374151; }
#base-auth ol li { margin-bottom: 0.5rem; }
#base-auth .fs-5 { font-size: 1rem !important; }
#base-auth .border-start.border-primary {
    background: rgba(39, 209, 150, 0.04) !important;
    border-color: #27D196 !important;
    border-radius: 8px;
}

/* ══════════ RESPONSIVE ══════════ */

@media (max-width: 1200px) {
    .auth-left-panel { width: 40%; padding: 2.5rem; }
    .auth-brand-logo { top: 2rem; left: 2.5rem; }
    .auth-marketing-content h1 { font-size: 1.875rem; }
}

@media (max-width: 991px) {
    .auth-split-layout { flex-direction: column; }
    .auth-left-panel {
        width: 100%; min-height: auto;
        padding: 3rem 2rem 2rem;
        text-align: center; align-items: center;
    }
    .auth-brand-logo { position: relative; top: 0; left: 0; margin-bottom: 1.5rem; }
    .auth-marketing-content h1 { font-size: 1.75rem; }
    .auth-marketing-content p.lead-text { margin-bottom: 1.5rem; }
    .auth-benefits-list { display: none; }
    .auth-right-panel { padding: 2.5rem 1.5rem; }
}

@media (max-width: 575px) {
    .auth-right-panel { padding: 2rem 1.25rem; }
    .auth-header h2 { font-size: 1.25rem; }
    .auth-cta-box { padding: 1.25rem; }
    .auth-form-container { max-width: 100%; }
}
