:root {
    --volt: #C6FF3D;
    --volt-dark: #A8E012;
    --ink: #070707;
    --ink-2: #121212;
    --card: #111111;
    --line: rgba(255, 255, 255, 0.12);
    --muted: #9ca3af;
    --white: #f5f5f5;
    --danger: #ef4444;
    --success: #22c55e;
}

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, sans-serif;
    background: var(--ink);
    color: var(--white);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-brand {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse at top left, rgba(198, 255, 61, 0.14), transparent 45%),
        var(--ink-2);
    border-right: 1px solid var(--line);
}

.auth-logo {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 16px;
}

.auth-logo span { color: var(--volt); }

.auth-tagline {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 32ch;
    margin: 0 0 32px;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.auth-points li {
    padding-left: 18px;
    position: relative;
    color: #d1d5db;
    font-size: 0.95rem;
}

.auth-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--volt);
}

.auth-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-card-inner {
    width: min(420px, 100%);
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e5e7eb;
}

.auth-field input,
.auth-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0d0d0d;
    color: var(--white);
    font: inherit;
}

.auth-field input:focus,
.auth-field select:focus {
    outline: none;
    border-color: var(--volt);
    box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.15);
}

.auth-phone-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.auth-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-btn-primary {
    background: var(--volt);
    color: var(--ink);
}

.auth-btn-primary:hover:not(:disabled) {
    background: var(--volt-dark);
    transform: translateY(-1px);
}

.auth-btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--line);
}

.auth-btn-ghost:hover:not(:disabled) {
    border-color: #fff;
}

.auth-step[hidden] { display: none !important; }

.auth-otp-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.auth-otp-hint strong { color: var(--volt); }

.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.auth-alert.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.auth-footer a {
    color: var(--volt);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-gym-list {
    display: grid;
    gap: 10px;
}

.auth-gym-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0d0d0d;
    color: var(--white);
    cursor: pointer;
    font: inherit;
}

.auth-gym-option:hover {
    border-color: var(--volt);
}

.auth-gym-option strong {
    display: block;
    margin-bottom: 4px;
}

.auth-gym-option span {
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }

    .auth-brand {
        padding: 28px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .auth-points { display: none; }
}
