/* ============================================================
   login.css — RungFit auth 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: 520px;
    display: flex;
    flex-direction: column;
    padding: 48px 40px;
    background: var(--bg);
    overflow-y: auto;
}

.panel {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.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);
    margin-bottom: 28px;
}

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

.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;
}

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

.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 {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    padding: 14px 0;
}

.input-wrap input::placeholder { color: rgba(255, 255, 255, .18); }

.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 errors ── */
.field-error {
    font-size: .72rem;
    color: #f87171;
    margin-top: 4px;
    margin-left: 2px;
    display: none;
}

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

/* ── Primary button ── */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--neon);
    color: #0a0a0a;
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .2s, box-shadow .2s;
    margin-top: 6px;
}

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

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: rgba(255, 255, 255, .18);
    font-size: .74rem;
    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 button ── */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: rgba(255, 255, 255, .6);
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

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

/* ── Bottom link ── */
.bottom-link {
    text-align: center;
    margin-top: 24px;
    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; }

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