/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ── BASE ── */
:root {
    --indigo:   #6366f1;
    --blue:     #3B82F6;
    --emerald:  #10b981;
    --amber:    #f59e0b;
    --danger:   #ef4444;
    --surface:  #0D1424;
    --s2:       #16202F;
    --s3:       #1E2D3E;
    --text:     #f8fafc;
    --muted:    rgba(255,255,255,0.50);
    --border:   rgba(255,255,255,0.08);
}
html, body {
    font-family: 'Lexend', -apple-system, sans-serif;
    background: var(--surface);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}
@keyframes pulse      { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes fadeUp     { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
@keyframes slideRight { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:none} }

/* ── MINIMAL NAV ── */
.reg-nav {
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(13,20,36,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 100;
}
.reg-nav-logo {
    display: flex; align-items: center; gap: 10px;
}
.reg-nav-logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #06b6d4 0%, #6366f1 55%, #8b5cf6 100%);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 14px rgba(99,102,241,.45);
    overflow: hidden;
    flex-shrink: 0;
}
.reg-nav-logo-text {
    font-size: 18px; font-weight: 900; letter-spacing: -.5px; color: #fff;
}
.reg-nav-back {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--muted);
    transition: color .15s;
    padding: 6px 0;
}
.reg-nav-back:hover { color: rgba(255,255,255,0.85); }
.reg-nav-back svg { flex-shrink: 0; }

/* ── BODY GRID ── */
.reg-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 64px);
}

/* ── LEFT — brand panel ── */
.reg-left {
    position: relative;
    overflow: hidden;
    padding: 64px 56px 64px 52px;
    display: flex; align-items: center;
}
.reg-left-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 100% 80% at 15% 40%, rgba(99,102,241,.22) 0%, transparent 58%),
        radial-gradient(ellipse 70% 55% at 85% 80%, rgba(16,185,129,.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 10%, rgba(6,182,212,.10) 0%, transparent 45%);
}
.reg-left-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 15%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 15%, transparent 75%);
}
.reg-left-content {
    position: relative; z-index: 1;
    max-width: 460px;
    animation: slideRight .7s ease both;
}
.reg-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(10,242,253,0.07);
    border: 1px solid rgba(10,242,253,0.22);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px; font-weight: 600; color: #22d3ee;
    margin-bottom: 26px;
    letter-spacing: .02em;
}
.reg-badge-dot {
    width: 6px; height: 6px;
    background: #22d3ee; border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
.reg-h1 {
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    color: #fff;
}
.reg-h1 .grad {
    background: linear-gradient(135deg, #818cf8 20%, #34d399 80%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.reg-sub {
    font-size: 15px; color: rgba(255,255,255,.58);
    line-height: 1.7; margin-bottom: 36px;
}
/* Benefits */
.reg-benefits {
    list-style: none;
    display: flex; flex-direction: column; gap: 13px;
    margin-bottom: 44px;
}
.reg-benefits li {
    display: flex; align-items: flex-start; gap: 11px;
    font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.5;
}
.reg-check {
    width: 20px; height: 20px; flex-shrink: 0;
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
/* Stats strip */
.reg-stats {
    display: flex; gap: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.reg-stat-num {
    font-size: 24px; font-weight: 900; color: #818cf8;
    letter-spacing: -.5px; line-height: 1;
    margin-bottom: 4px;
}
.reg-stat-label {
    font-size: 11px; color: rgba(255,255,255,.4);
    font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}

/* ── RIGHT — form panel ── */
.reg-right {
    display: flex; align-items: center; justify-content: center;
    padding: 48px 52px;
    background: rgba(255,255,255,.018);
    border-left: 1px solid rgba(255,255,255,.07);
    overflow-y: auto;
}
.reg-card {
    width: 100%; max-width: 460px;
    animation: fadeUp .6s .1s ease both;
}
.reg-card-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--indigo);
    margin-bottom: 8px;
}
.reg-card-eyebrow::before {
    content: '';
    width: 16px; height: 2px;
    background: currentColor; border-radius: 1px;
}
.reg-card-title {
    font-size: 26px; font-weight: 900;
    letter-spacing: -.5px; color: #fff;
    margin-bottom: 4px;
}
.reg-card-sub {
    font-size: 13px; color: var(--muted);
    margin-bottom: 28px; line-height: 1.55;
}

/* Form fields */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block; font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,.45); margin-bottom: 5px;
    text-transform: uppercase; letter-spacing: .06em;
}
.form-control, .form-select {
    width: 100%;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    padding: 10px 13px;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.form-control::placeholder { color: rgba(255,255,255,.22); }
.form-control:focus, .form-select:focus {
    border-color: rgba(99,102,241,.6);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
    background: rgba(255,255,255,.07);
}
.form-control:hover:not(:focus), .form-select:hover:not(:focus) {
    border-color: rgba(255,255,255,.18);
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}
/* Chrome autofill background fix */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a2540 inset;
    -webkit-text-fill-color: #f8fafc;
    caret-color: #f8fafc;
}
.form-hint {
    font-size: 11px; color: rgba(255,255,255,.3);
    margin-top: 4px; line-height: 1.4;
}

/* Password eye toggle */
.pass-wrapper { position: relative; }
.pass-wrapper .form-control { padding-right: 44px; }
.pass-eye {
    position: absolute; right: 0; top: 0; bottom: 0; width: 42px;
    background: transparent; border: none;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.32); cursor: pointer;
    transition: color .15s; border-radius: 0 10px 10px 0;
}
.pass-eye:hover { color: rgba(255,255,255,.72); }

/* Section break in form */
.reg-section-break {
    display: flex; align-items: center; gap: 10px;
    margin: 20px 0 18px;
}
.reg-section-break-line {
    flex: 1; height: 1px; background: rgba(255,255,255,.07);
}
.reg-section-break-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: rgba(255,255,255,.28);
    white-space: nowrap;
}

/* Submit button */
@keyframes regPulse {
    0%, 100% { box-shadow: 0 4px 22px rgba(99,102,241,0.42), 0 2px 8px rgba(0,0,0,0.22); }
    50%       { box-shadow: 0 4px 36px rgba(99,102,241,0.72), 0 2px 8px rgba(0,0,0,0.22); }
}
@keyframes regShimmer {
    0%        { transform: translateX(-150%) skewX(-12deg); }
    55%, 100% { transform: translateX(220%)  skewX(-12deg); }
}
.reg-submit {
    width: 100%; padding: 14px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff; border: none; border-radius: 50px;
    font-family: 'Lexend', sans-serif;
    font-size: 15px; font-weight: 700; letter-spacing: .2px;
    cursor: pointer; transition: transform .22s, box-shadow .22s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 8px;
    position: relative; overflow: hidden;
    animation: regPulse 2.8s ease-in-out infinite;
}
.reg-submit::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    animation: regShimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}
.reg-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99,102,241,0.62), 0 0 0 4px rgba(99,102,241,0.12);
    animation: none;
}
.reg-submit:hover::before { animation: none; }
.reg-submit:active { transform: translateY(0); }

/* Error alert */
.reg-error {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px; color: #fca5a5;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Sign-in footer */
.reg-footer {
    text-align: center;
    font-size: 13px; color: var(--muted);
    margin-top: 20px;
}
.reg-footer a {
    color: #818cf8; font-weight: 600;
    transition: color .15s;
}
.reg-footer a:hover { color: #a5b4fc; }

/* Mobile compact header (hidden on desktop) */
.reg-mobile-header {
    display: none;
    padding: 28px 24px 0;
    text-align: center;
}
.reg-mobile-header .reg-badge { margin: 0 auto 12px; }
.reg-mobile-title {
    font-size: 22px; font-weight: 900; letter-spacing: -.5px;
    color: #fff; margin-bottom: 6px;
}
.reg-mobile-sub {
    font-size: 13px; color: var(--muted); margin-bottom: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .reg-body { grid-template-columns: 1fr; }
    .reg-left  { display: none; }
    .reg-right {
        padding: 28px 24px 48px;
        background: none;
        border-left: none;
        align-items: flex-start;
    }
    .reg-card { max-width: 100%; }
    .reg-mobile-header { display: block; }
    .reg-nav { padding: 0 20px; }
}
@media (max-width: 520px) {
    .reg-grid-2, .reg-grid-3 { grid-template-columns: 1fr !important; }
}
