/* ===================================================================
   auth.css — Welcome, Login & Register pages
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:      #2c3e50;
    --primary-dk:   #1a252f;
    --accent:       #3498db;
    --accent-dk:    #2980b9;
    --danger:       #e74c3c;
    --success:      #27ae60;
    --warning:      #f39c12;
    --text:         #2c3e50;
    --text-muted:   #7f8c8d;
    --border:       #dde3ea;
    --bg:           #f5f6fa;
    --white:        #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ===================================================================
   WELCOME PAGE
   =================================================================== */

.welcome-page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }

/* ---- top nav ---- */
.welcome-nav {
    background: linear-gradient(145deg, #0d1f3c 0%, #163566 60%, #1a4a7a 100%);
    padding: 0 56px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    flex-shrink: 0;
    position: sticky; top: 0; z-index: 100;
    overflow: hidden;
}

/* nav decorative */
.wn-watermark {
    position: absolute;
    right: 220px; top: 50%; transform: translateY(-50%);
    font-size: 90px; font-weight: 900;
    color: rgba(255,255,255,.025);
    pointer-events: none; user-select: none;
    letter-spacing: -4px; z-index: 0;
}
.wn-circle { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.wn-c1 { width: 200px; height: 200px; top: -120px; right: 140px; background: rgba(116,185,255,.04); border: 1px solid rgba(116,185,255,.06); }
.wn-c2 { width: 140px; height: 140px; bottom: -90px; right: 320px; background: rgba(52,152,219,.04); }

.welcome-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative; z-index: 2;
}

.welcome-brand-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 19px;
    flex-shrink: 0;
}

.welcome-brand-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .2px; display: block; line-height: 1.2; }
.welcome-brand-sub  { font-size: 10px; color: rgba(255,255,255,.42); letter-spacing: .4px; display: block; margin-top: 1px; }

.welcome-nav-btns { display: flex; gap: 10px; align-items: center; position: relative; z-index: 2; }

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 22px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.btn-solid {
    background: var(--accent);
    border: 1.5px solid var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 22px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-solid:hover { background: var(--accent-dk); border-color: var(--accent-dk); }

/* ---- dark nav buttons (welcome page) ---- */
.wn-btn-ghost {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.28);
    color: #fff;
    padding: 9px 22px;
    border-radius: 22px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex; align-items: center; gap: 7px;
}
.wn-btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }

.wn-btn-solid {
    background: var(--accent);
    border: 1.5px solid var(--accent);
    color: #fff;
    padding: 9px 22px;
    border-radius: 22px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
    display: inline-flex; align-items: center; gap: 7px;
}
.wn-btn-solid:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px); }

.wn-btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.5);
    color: #fff;
    padding: 9px 22px;
    border-radius: 22px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .15s;
    display: inline-flex; align-items: center; gap: 7px;
}
.wn-btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; transform: translateY(-1px); }

/* ---- hero (full-width centered) ---- */
.welcome-hero {
    background: linear-gradient(145deg, #0d1f3c 0%, #163566 45%, #1e5fa8 100%);
    margin-top: 60px;
    padding: 40px 0 50px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* hero decorative */
.wh-watermark {
    position: absolute;
    left: 50%; bottom: -50px; transform: translateX(-50%);
    font-size: 280px; font-weight: 900;
    color: rgba(255,255,255,.022);
    pointer-events: none; user-select: none;
    letter-spacing: -16px; line-height: 1; z-index: 0;
    white-space: nowrap;
}
.wh-circle { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.wh-c1 { width: 520px; height: 520px; top: -220px; right: -80px; background: rgba(116,185,255,.04); border: 1px solid rgba(116,185,255,.07); }
.wh-c2 { width: 360px; height: 360px; bottom: -160px; left: -80px; background: rgba(52,152,219,.05); }
.wh-c3 { width: 250px; height: 250px; top: 40px; left: 8%; background: rgba(255,255,255,.025); }
.wh-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.hero-tagline {
    font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 18px;
}

.hero-title {
    font-size: 50px; font-weight: 900; line-height: 1.05;
    margin-bottom: 20px;
    max-width: none;
    white-space: nowrap;
}
.hero-title span { color: #74b9ff; }

.hero-subtitle {
    font-size: 19px;
    color: rgba(255,255,255,.75);
    margin-bottom: 14px;
    font-weight: 400;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    line-height: 1.72;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 15px; font-weight: 600;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 9px;
    transition: all .22s;
    box-shadow: 0 4px 18px rgba(52,152,219,.45);
}
.hero-btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 7px 22px rgba(52,152,219,.55); }

.hero-btn-secondary {
    background: rgba(255,255,255,.1);
    color: #fff;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 15px; font-weight: 500;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,.35);
    display: inline-flex; align-items: center; gap: 9px;
    transition: all .22s;
}
.hero-btn-secondary:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); border-color: rgba(255,255,255,.7); }

/* hero stats */
.hero-stats {
    display: flex; gap: 48px; justify-content: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat     { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stat-val { font-size: 28px; font-weight: 900; color: #74b9ff; line-height: 1; }
.hero-stat-lbl { font-size: 11px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .6px; }

/* ---- trust bar ---- */
.hero-trust-bar {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-top: 36px; padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.15);
    flex-wrap: wrap;
}
.hero-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75);
    padding: 6px 28px;
}
.hero-trust-item i { color: #74b9ff; font-size: 13px; }
.hero-trust-sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); }

/* ---- features section ---- */
.features-section {
    background: linear-gradient(180deg, #f0f4f9 0%, #f8f9fb 60%, #fff 100%);
    padding: 80px 48px;
    text-align: center;
}

.features-label {
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.features-label i { font-size: 11px; }

.features-heading {
    font-size: 32px; font-weight: 800; color: var(--primary);
    margin-bottom: 8px;
}

.features-sub {
    font-size: 15px; color: var(--text-muted);
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
}

.feat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid #e8ecf0;
    border-top: 3px solid transparent;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: transform .22s, box-shadow .22s, border-top-color .22s;
    text-align: center;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(52,152,219,.14); border-top-color: var(--accent); }

.feat-icon-wrap {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(52,152,219,.1) 0%, rgba(52,152,219,.18) 100%);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

.feat-icon {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 0;
    display: block;
}

.feat-title {
    font-size: 17px; font-weight: 700; color: var(--primary);
    margin-bottom: 10px;
}

.feat-desc {
    font-size: 13.5px; color: var(--text-muted);
    line-height: 1.65;
}

/* ---- CTA section ---- */
.wl-cta {
    background: linear-gradient(145deg, #0d1f3c 0%, #163566 50%, #1e5fa8 100%);
    text-align: center;
    padding: 84px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.wl-cta-watermark {
    position: absolute;
    left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-size: 200px; font-weight: 900;
    color: rgba(255,255,255,.025);
    pointer-events: none; user-select: none;
    letter-spacing: -8px; line-height: 1;
    white-space: nowrap; z-index: 0;
}
.wl-cta-inner {
    position: relative; z-index: 1;
    max-width: 660px; margin: 0 auto;
}
.wl-cta-inner h2 {
    font-size: 40px; font-weight: 900; color: #fff;
    line-height: 1.2; margin-bottom: 16px;
}
.wl-cta-inner h2 span { color: #74b9ff; }
.wl-cta-inner > p {
    font-size: 16px; color: rgba(255,255,255,.6);
    line-height: 1.72; margin-bottom: 38px;
}
.wl-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================================================================
   SELECT ORGANIZATION PAGE  — split layout matching login page
   =================================================================== */

.so-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 4fr 1fr;
}

/* ── Left Visual (reuses .lv-* from login) ── */
.so-visual {
    position: relative;
    overflow: hidden;
    min-width: 0;
    background: linear-gradient(145deg, #0d1f3c 0%, #163566 45%, #1e5fa8 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 64px 72px;
}

/* ── Right Panel ── */
.so-panel {
    background: #1b2d50;
    display: flex; flex-direction: column;
    color: #fff;
    border-left: 1px solid rgba(255,255,255,.06);
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
}
.so-panel-inner {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 30px 18px;
    overflow-y: auto;
    width: 100%;
}

.so-panel-top { text-align: center; margin-bottom: 20px; }
.so-panel-icon {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2573a7 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff; margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(52,152,219,.35);
}
.so-panel-title {
    font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 4px;
    white-space: nowrap;
}
.so-panel-sub {
    font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: .3px;
    white-space: nowrap;
}

/* ── Search box ── */
.so-search-wrap {
    position: relative; width: 100%; max-width: 220px;
    margin-bottom: 20px;
}
.so-search-icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: rgba(255,255,255,.35); pointer-events: none;
}
.so-search {
    width: 100%; padding: 8px 12px 8px 30px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px; color: #fff; font-size: 12px;
    outline: none; transition: border-color .2s, background .2s;
}
.so-search::placeholder { color: rgba(255,255,255,.3); }
.so-search:focus { border-color: rgba(52,152,219,.6); background: rgba(255,255,255,.1); }

.so-no-results {
    text-align: center; padding: 24px 10px; color: rgba(255,255,255,.35); font-size: 12px;
}
.so-no-results i { font-size: 20px; margin-bottom: 8px; display: block; opacity: .3; }

/* ── Org cards: icon centered, name below ── */
.so-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px; width: 100%;
    justify-items: center;
}

.so-card {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: #fff;
    padding: 16px 10px 12px; border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
    cursor: pointer; width: 100px; flex-shrink: 0;
}
.so-card:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(52,152,219,.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.so-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.so-card-name {
    font-size: 11px; font-weight: 700; text-align: center;
    line-height: 1.3; white-space: nowrap;
    color: rgba(255,255,255,.88);
    max-width: 100%; overflow: hidden;
}
.so-card:hover .so-card-name { color: #fff; }

/* marquee effect for long names */
.so-card-name.so-marquee {
    display: inline-block;
    animation: soMarquee 6s linear infinite;
}
@keyframes soMarquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ── Empty state ── */
.so-empty {
    text-align: center; padding: 40px 24px; color: rgba(255,255,255,.45); font-size: 14px;
}
.so-empty i { font-size: 44px; margin-bottom: 14px; display: block; opacity: .35; }
.so-empty-btn {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
    padding: 10px 22px; border-radius: 22px;
    background: var(--accent); color: #fff;
    text-decoration: none; font-weight: 600; font-size: 13px;
    transition: background .2s;
}
.so-empty-btn:hover { background: var(--accent-dk); }

/* ── Footer ── */
.so-panel-footer {
    flex-shrink: 0;
    text-align: center; padding: 16px 12px;
    font-size: 11px; color: rgba(255,255,255,.35);
    border-top: 1px solid rgba(255,255,255,.06);
    white-space: nowrap;
}
.so-panel-footer a {
    color: #74b9ff; text-decoration: none; font-weight: 600;
}
.so-panel-footer a:hover { text-decoration: underline; }
.so-sep { margin: 0 8px; opacity: .4; }

@media (max-width: 900px) {
    .so-page { grid-template-columns: 1fr; }
    .so-visual { display: none; }
    .so-panel { min-height: 100vh; }
}

/* ---- footer ---- */
.welcome-footer {
    background: var(--primary-dk);
    color: rgba(255,255,255,.55);
    flex-shrink: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding: 52px 64px 44px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    margin-bottom: 12px;
}

.footer-brand-name {
    font-size: 17px; font-weight: 700; color: #fff;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 9px;
}

.footer-brand-desc {
    font-size: 13px; line-height: 1.65;
    color: rgba(255,255,255,.45);
    max-width: 240px;
}

.footer-col-title {
    font-size: 14px; font-weight: 700; color: #fff;
    margin-bottom: 16px;
    position: relative; padding-bottom: 8px;
}
.footer-col-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links li a {
    color: rgba(255,255,255,.5); font-size: 13px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 7px;
    transition: color .18s;
}
.footer-links li a:hover { color: var(--accent); }
.footer-links li a i { font-size: 9px; color: rgba(255,255,255,.3); }

.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: rgba(255,255,255,.5);
}
.footer-contact li i {
    color: var(--accent); font-size: 13px; margin-top: 2px; flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 64px;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto;
    font-size: 12px;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    color: rgba(255,255,255,.4); text-decoration: none; font-size: 12px;
    transition: color .18s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }


/* ===================================================================
   SHARED AUTH UTILITIES  (used by Login + Register)
   =================================================================== */

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 13px;
    text-decoration: none;
    margin-bottom: 26px;
    transition: color .2s;
}
.back-link:hover { color: var(--accent); }

.auth-form-title { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 5px; }
.auth-form-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* ---- alerts ---- */
.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    display: flex; align-items: flex-start; gap: 9px;
    margin-bottom: 18px;
}
.auth-alert-error   { background: #fdf0ef; border: 1px solid #f5c6c0; color: var(--danger); }
.auth-alert-success { background: #edfbf3; border: 1px solid #b8f0cf; color: var(--success); }

/* ---- form elements ---- */
.auth-form { display: flex; flex-direction: column; gap: 17px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-section-label {
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--accent);
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 6px;
}

/* Registered toggle in Legal & Tax label */
.reg-toggle-label {
    margin-left: auto;
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 600;
    text-transform: none; letter-spacing: 0;
    color: var(--text); cursor: pointer;
}
.reg-toggle-label input[type="checkbox"] {
    width: 15px; height: 15px; cursor: pointer;
    accent-color: var(--accent);
}

/* Dim locked legal fields */
.form-group.legal-locked {
    opacity: 0.42;
    pointer-events: none;
}

.req-star { color: var(--danger); font-weight: 700; }

.form-select { appearance: none; cursor: pointer; }

.form-label {
    font-size: 13px; font-weight: 600; color: var(--primary);
}
.form-label .optional { font-weight: 400; color: var(--text-muted); font-size: 12px; }

.form-input {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px; font-family: inherit;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    background: var(--white);
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52,152,219,.12);
}
.form-input::placeholder { color: #b0b8c1; }

.input-with-icon         { position: relative; }
.input-with-icon .form-input { padding-left: 40px; }
.input-icon {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    color: #b0b8c1; font-size: 14px; pointer-events: none;
}
.toggle-password {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    color: #b0b8c1; cursor: pointer;
    background: none; border: none; padding: 0; font-size: 14px;
    transition: color .2s;
}
.toggle-password:hover { color: var(--accent); }

.password-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.form-options {
    display: flex; align-items: center; justify-content: space-between;
}
.form-check {
    display: flex; align-items: center; gap: 7px;
    cursor: pointer; font-size: 13px; color: var(--text-muted);
}
.form-check input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--accent); cursor: pointer;
}
.form-forgot {
    font-size: 13px; color: var(--accent);
    text-decoration: none; font-weight: 500;
}
.form-forgot:hover { text-decoration: underline; }

/* ---- submit button ---- */
.btn-auth {
    background: var(--accent);
    color: var(--white);
    padding: 13px;
    border-radius: 8px;
    font-size: 15px; font-weight: 600;
    border: none; cursor: pointer;
    width: 100%; font-family: inherit;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 4px;
}
.btn-auth:hover  { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(52,152,219,.3); }
.btn-auth:active { transform: translateY(0); }

/* ---- divider & switch ---- */
.auth-divider {
    display: flex; align-items: center; gap: 14px;
    color: var(--text-muted); font-size: 12px;
    margin-top: 20px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }


/* ===================================================================
   REGISTER PAGE  — full-width header + centered form card
   =================================================================== */

.reg-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.reg-header {
    background: linear-gradient(145deg, #0d1f3c 0%, #163566 45%, #1e5fa8 100%);
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
    flex-shrink: 0;
    position: sticky; top: 0; z-index: 50;
    overflow: hidden;
}

/* watermark */
.rh-watermark {
    position: absolute;
    right: 18%; top: 50%; transform: translateY(-50%);
    font-size: 160px; font-weight: 900;
    color: rgba(255,255,255,.035);
    pointer-events: none; user-select: none;
    letter-spacing: -8px; line-height: 1;
    z-index: 1;
}

/* decorative circles */
.rh-circle { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }
.rh-c1 {
    width: 320px; height: 320px;
    top: -160px; right: 25%;
    background: rgba(116,185,255,.04);
    border: 1px solid rgba(116,185,255,.07);
}
.rh-c2 {
    width: 220px; height: 220px;
    bottom: -110px; right: 45%;
    background: rgba(52,152,219,.05);
}
.rh-c3 {
    width: 180px; height: 180px;
    top: -60px; left: 30%;
    background: rgba(255,255,255,.03);
}

.reg-header-inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 10px 56px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.reg-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.reg-brand-icon {
    width: 46px; height: 46px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 21px;
    flex-shrink: 0;
}
.reg-brand-name { font-size: 21px; font-weight: 800; color: #fff; line-height: 1.2; }
.reg-brand-sub  { font-size: 10.5px; color: rgba(255,255,255,.45); letter-spacing: .4px; margin-top: 2px; }

.reg-header-headline {
    flex: 1;
    text-align: center;
}
.reg-header-headline h1 {
    font-size: 26px; font-weight: 900; color: #fff; line-height: 1.2;
}
.reg-header-headline h1 span { color: #74b9ff; }
.reg-header-headline p  {
    font-size: 12.5px; color: rgba(255,255,255,.52); margin-top: 4px;
}

/* stat badges — hidden in header to keep it slim */
.rh-stats {
    display: none;
}
.rh-stat     { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rh-stat-val { font-size: 17px; font-weight: 900; color: #74b9ff; line-height: 1; }
.rh-stat-lbl { font-size: 10px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .5px; }

.reg-header-signin {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 10px;
}
.reg-header-signin span {
    font-size: 12px; color: rgba(255,255,255,.55);
}
.reg-signin-btn {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 22px;
    padding: 10px 22px;
    font-size: 14px; font-weight: 600; color: #fff;
    text-decoration: none;
    transition: background .2s;
}
.reg-signin-btn:hover { background: rgba(255,255,255,.22); }
.reg-signin-btn i { font-size: 13px; color: #74b9ff; }
.reg-chip {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    padding: 6px 13px;
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,.88);
    white-space: nowrap;
}
.reg-chip i { color: #74b9ff; font-size: 11px; }

/* ── Main ── */
.reg-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.reg-card {
    background: var(--white);
    flex: 1;
    padding: 36px 56px 48px;
    width: 100%;
}

.reg-card-top {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid var(--border);
    max-width: 1400px;
}
.reg-card-top .back-link { flex-shrink: 0; margin-top: 6px; margin-bottom: 0; }
.reg-card-top .auth-form-title { margin-bottom: 4px; }
.reg-card-top .auth-form-sub   { margin-bottom: 0; }

.reg-card .auth-alert  { max-width: 1400px; }
.reg-card .btn-auth    { max-width: 1400px; }
.reg-card .auth-switch { max-width: 1400px; }

/* ── 3-column form grid ── */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 18px;
    margin-bottom: 24px;
    max-width: 1400px;
}
.fg-full  { grid-column: 1 / -1; }
.fg-span2 { grid-column: span 2; }

.form-section-label { max-width: 1400px; }

/* ── Footer ── */
.reg-footer {
    padding: 18px 56px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--white);
}
.reg-footer-bar {
    background: #0d1f3c;
    padding: 15px 56px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px; color: rgba(255,255,255,.3);
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,.07);
}
.reg-footer-links { display: flex; gap: 20px; }
.reg-footer-links a {
    color: rgba(255,255,255,.3); text-decoration: none; font-size: 11px;
    transition: color .18s;
}
.reg-footer-links a:hover { color: rgba(255,255,255,.65); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .reg-header-chips { display: none; }
    .rh-stats { display: none; }
    .reg-header-headline { text-align: left; }
    .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .fg-full  { grid-column: 1 / -1; }
    .fg-span2 { grid-column: span 2; }
    .reg-card { padding: 28px 24px 32px; }
    .reg-footer { padding: 16px 24px; }
    .reg-footer-bar { padding: 14px 24px; }
}

@media (max-width: 600px) {
    .reg-header-inner { padding: 14px 20px; gap: 16px; }
    .reg-header-headline { display: none; }
    .form-grid-3 { grid-template-columns: 1fr; }
    .fg-span2 { grid-column: span 1; }
    .rh-watermark { display: none; }
    .reg-footer-bar { flex-direction: column; gap: 10px; text-align: center; padding: 14px 20px; }
}


/* ===================================================================
   LOGIN PAGE  — wide visual left / narrow dark form right
   =================================================================== */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 4fr 1fr;
}

/* ── Left Visual Panel ── */
.login-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0d1f3c 0%, #163566 45%, #1e5fa8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 72px;
}

/* ── Slideshow layers (up to 10) ── */
.lv-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1;
}
.lv-slide.active {
    opacity: 1;
}

.lv-inner {
    position: relative;
    z-index: 2;
    max-width: 580px;
    width: 100%;
}

.lv-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: absolute;
    top: 32px;
    left: 48px;
    z-index: 3;
    background: rgba(0,0,0,.35);
    padding: 10px 18px 10px 12px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lv-brand-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; flex-shrink: 0;
}
.lv-brand-name {
    display: block;
    font-size: 21px; font-weight: 800; color: #fff;
}
.lv-brand-sub {
    display: block;
    font-size: 11px; color: rgba(255,255,255,.48);
    letter-spacing: .4px; margin-top: 2px;
}

.lv-headline h1 {
    font-size: 54px; font-weight: 900; line-height: 1.1;
    color: #fff; margin-bottom: 20px;
}
.lv-headline h1 span { color: #74b9ff; }
.lv-headline p {
    font-size: 15px; color: rgba(255,255,255,.58);
    line-height: 1.85; max-width: 460px;
    margin-bottom: 52px;
}

.lv-stats        { display: flex; gap: 44px; }
.lv-stat-val     { font-size: 30px; font-weight: 900; color: #74b9ff; margin-bottom: 5px; }
.lv-stat-lbl     { font-size: 11px; color: rgba(255,255,255,.48); text-transform: uppercase; letter-spacing: .5px; }

/* watermark */
.lv-watermark {
    position: absolute;
    bottom: -50px; right: -20px;
    font-size: 240px; font-weight: 900;
    color: rgba(255,255,255,.035);
    pointer-events: none; user-select: none;
    line-height: 1; letter-spacing: -12px;
    z-index: 1;
}

/* decorative circles */
.lv-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.lv-c1 {
    width: 420px; height: 420px;
    top: -130px; right: -110px;
    background: rgba(116,185,255,.05);
    border: 1px solid rgba(116,185,255,.08);
}
.lv-c2 {
    width: 280px; height: 280px;
    bottom: 50px; right: 30px;
    background: rgba(52,152,219,.07);
}
.lv-c3 {
    width: 190px; height: 190px;
    top: 50%; left: -80px;
    transform: translateY(-50%);
    background: rgba(255,255,255,.04);
}

/* ── Right Form Panel ── */
.login-form-panel {
    background: #1b2d50;
    display: flex;
    flex-direction: column;
    color: #fff;
    border-left: 1px solid rgba(255,255,255,.06);
}

.lfp-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 44px;
}

/* logo block */
.lfp-logo          { text-align: center; margin-bottom: 28px; }
.lfp-logo-icon {
    width: 58px; height: 58px;
    background: var(--accent);
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px;
    margin-bottom: 13px;
}
.lfp-logo-name     { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.lfp-logo-sub      { font-size: 11px; color: rgba(255,255,255,.38); text-transform: uppercase; letter-spacing: .6px; }

.lfp-tagline {
    text-align: center;
    font-size: 18px; font-weight: 700; font-style: italic;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
    margin-bottom: 30px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* form */
.lfp-form          { display: flex; flex-direction: column; gap: 18px; }

.lfp-field label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,.6);
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 7px;
}
.lfp-field input {
    width: 100%;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px; color: #fff;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
}
.lfp-field input::placeholder { color: rgba(255,255,255,.28); }
.lfp-field input:focus {
    border-color: #74b9ff;
    background: rgba(255,255,255,.11);
    box-shadow: 0 0 0 3px rgba(116,185,255,.12);
}

.lfp-pwd-wrap           { position: relative; }
.lfp-pwd-wrap input     { padding-right: 44px; }
.lfp-eye {
    position: absolute; right: 13px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,.38); font-size: 14px;
    padding: 4px; transition: color .2s;
}
.lfp-eye:hover { color: rgba(255,255,255,.8); }

.lfp-forgot            { text-align: right; margin-top: -8px; }
.lfp-forgot a {
    font-size: 12px; color: #74b9ff;
    text-decoration: none; transition: color .2s;
}
.lfp-forgot a:hover    { color: #fff; }

.lfp-btn {
    width: 100%; padding: 13px;
    background: var(--accent);
    color: #fff; font-size: 15px; font-weight: 700;
    border: none; border-radius: 8px; cursor: pointer;
    font-family: inherit; letter-spacing: .3px;
    transition: background .2s, transform .1s;
    margin-top: 4px;
}
.lfp-btn:hover  { background: #2980b9; transform: translateY(-1px); }
.lfp-btn:active { transform: translateY(0); }

.lfp-switch {
    text-align: center;
    font-size: 13px; color: rgba(255,255,255,.4);
    margin-top: 22px;
}
.lfp-switch a {
    color: #74b9ff; text-decoration: none; font-weight: 600;
    transition: color .2s;
}
.lfp-switch a:hover { color: #fff; }

.lfp-footer {
    padding: 20px 44px;
    border-top: 1px solid rgba(255,255,255,.07);
    text-align: center;
    font-size: 11px; color: rgba(255,255,255,.3);
    line-height: 1.75;
}
.lfp-footer span { color: rgba(255,255,255,.2); }
