/* ============================================================
   register.css — RungFit multi-step register styles
   ============================================================ */

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

:root {
    --neon:       #c8ff00;
    --bg:         #0a0a0a;
    --card:       #141414;
    --border:     #222;
    --text-muted: rgba(255, 255, 255, .38);
    --red:        #ef4444;
    --red-soft:   rgba(239, 68, 68, .08);
}

body {
    background: var(--bg);
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* ── Layout ── */
.layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Hero panel ── */
.hero {
    flex: 1;
    background: #0d0d0d;
    border-right: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 255, 0, .08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--neon);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.logo-text span { color: var(--neon); }

/* ── Hero body ── */
.hero-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-body h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: -.02em;
    text-shadow: 0 0 40px rgba(200, 255, 0, .2);
}

.hero-body h1 span { color: var(--neon); }

.hero-body p {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.75;
    max-width: 360px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    border: 1px solid rgba(200, 255, 0, .2);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--neon);
    text-transform: uppercase;
    width: fit-content;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 8px var(--neon);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}

/* ── Hero footer (rank bars) ── */
.hero-ranks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(200, 255, 0, .03);
    border: 1px solid rgba(200, 255, 0, .07);
    border-radius: 10px;
}

.rank-badge {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--neon);
    width: 68px;
    flex-shrink: 0;
}

.rank-bar-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, .06);
    border-radius: 100px;
    overflow: hidden;
}

.rank-bar-fill {
    height: 100%;
    background: var(--neon);
    border-radius: 100px;
    box-shadow: 0 0 6px rgba(200, 255, 0, .35);
}

/* ── Form panel ── */
.panel-wrap {
    width: 560px;
    display: flex;
    flex-direction: column;
    padding: 48px 40px;
    background: var(--bg);
    overflow-y: auto;
}

.panel { width: 100%; }

.panel h2 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.panel-sub {
    margin-top: 6px;
    font-size: .85rem;
    color: var(--text-muted);
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    margin: 28px 0 20px;
}

.bc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.bc-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .12);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .28);
    transition: all .35s ease;
}

.bc-circle .check-icon { display: none; }

.bc-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(255, 255, 255, .22);
    white-space: nowrap;
    transition: color .35s ease;
}

.bc-step.active .bc-circle {
    border-color: var(--neon);
    background: rgba(200, 255, 0, .1);
    color: var(--neon);
    box-shadow: 0 0 16px rgba(200, 255, 0, .28);
}

.bc-step.active .bc-label { color: var(--neon); }

.bc-step.done .bc-circle {
    border-color: var(--neon);
    background: var(--neon);
    color: #0a0a0a;
}

.bc-step.done .bc-circle .step-num { display: none; }
.bc-step.done .bc-circle .check-icon { display: block; }
.bc-step.done .bc-label { color: rgba(200, 255, 0, .6); }

.bc-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .07);
    margin: 0 6px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.bc-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--neon);
    box-shadow: 0 0 6px rgba(200, 255, 0, .45);
    transition: width .45s ease;
}

.bc-line.done::after { width: 100%; }

/* ── Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(200, 255, 0, .07);
    border: 1px solid rgba(200, 255, 0, .2);
    color: var(--neon);
}

.alert-error {
    background: rgba(239, 68, 68, .07);
    border: 1px solid rgba(239, 68, 68, .2);
    color: #f87171;
}

.alert-error ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* ── Steps ── */
.steps-container {
    position: relative;
    overflow: hidden;
}

.step {
    display: none;
    animation-duration: .32s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}

.step.active { display: block; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(36px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-36px); }
    to   { opacity: 1; transform: translateX(0); }
}

.step.enter-right { animation-name: slideInRight; }
.step.enter-left  { animation-name: slideInLeft; }

.step-title {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--neon);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(200, 255, 0, .1);
}

/* ── Fields ── */
.field { margin-bottom: 10px; }

.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color .2s, box-shadow .2s;
}

.input-wrap:focus-within {
    border-color: rgba(200, 255, 0, .35);
    box-shadow: 0 0 0 3px rgba(200, 255, 0, .05);
}

.input-wrap.is-error {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px var(--red-soft) !important;
}

.input-wrap.is-success {
    border-color: rgba(200, 255, 0, .45) !important;
    box-shadow: 0 0 0 3px rgba(200, 255, 0, .05) !important;
}

.input-icon {
    color: rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.input-wrap input,
.input-wrap select {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    padding: 13px 0;
    appearance: none;
}

.input-wrap input::placeholder { color: rgba(255, 255, 255, .18); }
.input-wrap select option { background: #1a1a1a; color: #fff; }
.input-wrap select:invalid { color: rgba(255, 255, 255, .18); }

/* ── Select arrow ── */
.select-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrap select { width: 100%; padding-right: 28px; cursor: pointer; }

.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, .28);
    display: flex;
    align-items: center;
    transition: color .2s, transform .2s;
}

.input-wrap:focus-within .select-arrow {
    color: var(--neon);
    transform: translateY(-50%) rotate(180deg);
}

.input-wrap.is-success .select-arrow { color: var(--neon); }
.input-wrap.is-error   .select-arrow { color: #f87171; }

/* ── Password toggle ── */
.pass-toggle {
    color: rgba(255, 255, 255, .2);
    cursor: pointer;
    transition: color .2s;
    display: flex;
    align-items: center;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
}

.pass-toggle:hover { color: var(--neon); }

/* ── Field error ── */
.field-error {
    font-size: .72rem;
    color: #f87171;
    margin-top: 4px;
    margin-left: 2px;
    display: none;
}

.field-error.visible { display: block; }

/* ── Terms ── */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 4px;
}

.terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--neon);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.terms-row span {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.terms-link {
    background: none;
    border: none;
    color: var(--neon);
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* ── Divider / social ── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: rgba(255, 255, 255, .18);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, .07);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: rgba(255, 255, 255, .6);
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.social-btn:hover {
    border-color: rgba(200, 255, 0, .25);
    color: #fff;
}

.social-verified {
    font-size: .78rem;
    color: rgba(200, 255, 0, .65);
    background: rgba(200, 255, 0, .04);
    border: 1px solid rgba(200, 255, 0, .1);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

.hidden-field { display: none; }

/* ── Role buttons ── */
.rol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

.rol-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 16px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: rgba(255, 255, 255, .45);
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
    user-select: none;
    width: 100%;
}

.rol-btn:hover {
    border-color: rgba(200, 255, 0, .3);
    color: rgba(255, 255, 255, .8);
}

.rol-btn.active {
    border-color: var(--neon);
    background: rgba(200, 255, 0, .07);
    color: var(--neon);
    box-shadow: 0 0 20px rgba(200, 255, 0, .12);
}

.rol-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.rol-btn.active .rol-btn-icon { background: rgba(200, 255, 0, .12); }

/* ── Buttons ── */
.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.btn-primary {
    flex: 1;
    padding: 13px;
    background: var(--neon);
    color: #0a0a0a;
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .2s, box-shadow .2s;
}

.btn-primary:hover {
    opacity: .9;
    box-shadow: 0 0 24px rgba(200, 255, 0, .25);
}

.btn-ghost {
    padding: 13px 18px;
    background: transparent;
    color: rgba(255, 255, 255, .45);
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.btn-ghost:hover {
    border-color: rgba(200, 255, 0, .28);
    color: #fff;
}

/* ── Bottom link ── */
.bottom-link {
    text-align: center;
    margin-top: 16px;
    font-size: .82rem;
    color: var(--text-muted);
}

.bottom-link a {
    color: var(--neon);
    text-decoration: none;
    font-weight: 700;
}

.bottom-link a:hover { text-decoration: underline; }

/* ── Terms modal ── */
.terms-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.terms-modal.open { display: flex; }

.terms-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.terms-card {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(200, 255, 0, .14);
    border-radius: 16px;
    padding: 32px;
    width: min(480px, calc(100vw - 32px));
    box-shadow: 0 0 60px rgba(0, 0, 0, .6);
}

.terms-card h3 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--neon);
    margin-bottom: 16px;
}

.terms-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.terms-body p {
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Mobile ── */
@media (max-width: 820px) {
    .hero { display: none; }
    .panel-wrap { width: 100%; padding: 32px 24px; }
}
