/* AUTH LAYOUT */
.auth-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 62px);
}
.auth-left {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 4rem 3rem;
}
.auth-form-wrap { width: 100%; max-width: 420px; }

/* PROGRESS INDICATOR */
.auth-progress {
    display: flex; align-items: center; margin-bottom: 2.5rem;
}
.auth-step-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; flex-shrink: 0;
    background: var(--cream-mid); color: var(--ink-faint);
    border: 1.5px solid var(--border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.auth-step-dot.done { background: var(--green); color: #fff; border-color: var(--green); }
.auth-step-dot.active { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.auth-step-line {
    flex: 1; height: 1.5px; background: var(--border); min-width: 32px;
    transition: background 0.3s;
}
.auth-step-line.done { background: var(--green); }

/* FORM ELEMENTS */
.auth-eyebrow {
    font-size: 11px; font-weight: 700; color: var(--green);
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px;
}
.auth-title {
    font-size: clamp(24px, 2.8vw, 32px); font-weight: 800;
    color: var(--ink); letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 8px;
}
.auth-sub {
    font-size: 14px; color: var(--ink-soft); margin-bottom: 2rem; line-height: 1.6;
}
.form-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--ink-mid); }
.form-input {
    padding: 13px 16px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); font-size: 15px;
    font-family: 'Bricolage Grotesque', sans-serif; color: var(--ink);
    background: var(--white); outline: none; width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,191,115,0.08); }
.form-input::placeholder { color: var(--ink-faint); }
.form-input.error { border-color: #E24B4A; }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(226,75,74,0.08); }
.form-hint { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .form-input { padding-right: 44px; }
.input-toggle {
    position: absolute; right: 14px; background: none; border: none;
    cursor: pointer; color: var(--ink-faint); font-size: 17px; padding: 4px;
    display: flex; align-items: center; transition: color 0.15s;
}
.input-toggle:hover { color: var(--ink-soft); }

/* PASSWORD STRENGTH */
.pwd-strength { margin-top: 8px; }
.pwd-bars { display: flex; gap: 4px; margin-bottom: 4px; }
.pwd-bar { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background 0.2s; }
.pwd-bar.weak { background: #E24B4A; }
.pwd-bar.medium { background: var(--amber); }
.pwd-bar.strong { background: var(--green); }
.pwd-label { font-size: 11px; color: var(--ink-faint); }

/* SPORT PICKER */
.sport-pick-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.sport-pick {
    padding: 10px 8px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); background: var(--white);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--ink-mid);
    cursor: pointer; transition: all 0.15s; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.sport-pick:hover { border-color: var(--green); color: var(--green); background: var(--green-pale); }
.sport-pick.selected { border-color: var(--green); background: var(--green-light); color: var(--green); }
.sport-pick i { font-size: 20px; }
.sport-pick .sp-check {
    width: 16px; height: 16px; border-radius: 50%; background: var(--green);
    color: #fff; font-size: 10px; display: none;
    align-items: center; justify-content: center; margin-left: auto; margin-right: auto;
}
.sport-pick.selected .sp-check { display: flex; }

/* STEP ACTIONS */
.step-actions { display: flex; gap: 10px; margin-top: 1.75rem; align-items: center; }
.btn-submit {
    flex: 1; padding: 14px; background: var(--green); color: #fff; border: none;
    border-radius: var(--radius-sm); font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px; font-weight: 800; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--green-mid); }
.btn-submit:active { transform: scale(0.98); }
.btn-back {
    padding: 14px 18px; background: transparent; border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-sm); font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px; font-weight: 600; color: var(--ink-soft);
    cursor: pointer; transition: background 0.15s, border-color 0.15s;
    display: flex; align-items: center; gap: 6px;
}
.btn-back:hover { background: var(--cream-mid); border-color: var(--ink-soft); }

/* STEP CONTENT */
.step-content { display: none; }
.step-content.active { display: block; }

.auth-switch {
    text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 1.75rem;
}
.auth-switch a { color: var(--green); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

/* TERMS */
.terms-note {
    font-size: 12px; color: var(--ink-faint); line-height: 1.6; margin-top: 1rem; text-align: center;
}
.terms-note a { color: var(--ink-soft); text-decoration: underline; }

/* SUCCESS STATE */
.success-screen {
    display: none; flex-direction: column; align-items: center;
    text-align: center; padding: 2rem 0;
}
.success-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--green-light);
    color: var(--green); font-size: 28px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.success-title { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.success-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 2rem; }

/* AUTH PANEL (RIGHT) */
.auth-panel {
    background: var(--green);
    display: flex; flex-direction: column;
    justify-content: center; padding: 4rem 3.5rem;
    position: relative; overflow: hidden;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.auth-panel::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 340px; height: 340px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
}
.auth-panel::after {
    content: ''; position: absolute; bottom: -100px; left: -60px;
    width: 290px; height: 290px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
}
.ap-content { position: relative; z-index: 1; max-width: 420px; }
.ap-eyebrow {
    font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1.25rem;
}
.ap-headline {
    font-size: clamp(32px, 3.5vw, 46px); font-weight: 800;
    color: #fff; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 2.5rem;
}
.ap-headline em { color: var(--amber); font-style: italic; }
.ap-stats {
    display: flex; gap: 2rem; padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 2rem;
}
.ap-stat-num { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.ap-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; }

.ap-features { display: flex; flex-direction: column; gap: 12px; }
.ap-feature { display: flex; align-items: flex-start; gap: 12px; }
.ap-feature-icon {
    width: 32px; height: 32px; border-radius: var(--radius-sm); flex-shrink: 0;
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ap-feature-text { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.55; }
.ap-feature-text strong { color: #fff; font-weight: 700; }

nav { position: relative; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .auth-layout { grid-template-columns: 1fr; min-height: auto; }
    .auth-panel { display: none; }
    .auth-left { padding: 3rem 1.5rem; min-height: calc(100vh - 60px); }
    .form-row-2 { grid-template-columns: 1fr; }
}
