/* ═══════════════════════════════════════════
   PLAYVAULT — auth.css
   Login & Register Pages
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
    --red:      #e63946;
    --red-dark: #c1121f;
    --red-glow: rgba(230,57,70,0.3);
    --purple:   #7c3aed;
    --bg:       #06060f;
    --card:     #0d0d1a;
    --card2:    #111120;
    --border:   rgba(255,255,255,0.07);
    --text:     #f1f1f1;
    --muted:    #9ca3af;
    --dim:      #4b5563;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a    { text-decoration: none; color: inherit; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,.sora { font-family: 'Sora', sans-serif; }

/* ── BACKGROUND ── */
.bg-scene {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.3), transparent 70%);
    top: -200px; left: -150px;
    animation: orbFloat 12s ease-in-out infinite;
}
.orb-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(124,58,237,0.2), transparent 70%);
    bottom: -150px; right: -100px;
    animation: orbFloat 15s ease-in-out infinite reverse;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(230,57,70,0.15), transparent 70%);
    top: 50%; right: 20%;
    animation: orbFloat 10s ease-in-out infinite;
    filter: blur(60px);
}
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(230,57,70,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230,57,70,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-30px) scale(1.08); }
    66%      { transform: translate(-30px,40px) scale(0.94); }
}

/* ── LAYOUT ── */
.auth-wrap {
    position: relative; z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── LEFT PANEL ── */
.auth-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    background: linear-gradient(
        160deg,
        rgba(230,57,70,0.08) 0%,
        rgba(124,58,237,0.05) 50%,
        transparent 100%
    );
    border-right: 1px solid rgba(255,255,255,0.05);
}

.auth-logo {
    font-family: 'Sora', sans-serif;
    font-size: 24px; font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 48px; display: inline-block;
}
.auth-logo .r { color: var(--red); }
.auth-logo .w { color: #fff; }

.auth-tagline {
    font-family: 'Sora', sans-serif;
    font-size: 36px; font-weight: 900;
    line-height: 1.15; color: #fff;
    margin-bottom: 16px;
}

.auth-desc {
    font-size: 15px; color: var(--muted);
    line-height: 1.7; margin-bottom: 36px;
    max-width: 380px;
}

.auth-features {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 40px;
}
.feat {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: #d1d5db; font-weight: 500;
}
.feat i {
    width: 32px; height: 32px;
    background: rgba(230,57,70,0.12);
    border: 1px solid rgba(230,57,70,0.2);
    border-radius: 8px; color: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}

.auth-stats {
    display: flex; align-items: center; gap: 24px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
}
.stat-n {
    font-family: 'Sora', sans-serif;
    font-size: 22px; font-weight: 900; color: var(--red);
}
.stat-l { font-size: 12px; color: var(--dim); margin-top: 2px; }
.stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.08); }

/* ── RIGHT PANEL ── */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card-header { text-align: center; margin-bottom: 28px; }

.auth-card-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(230,57,70,0.2), rgba(230,57,70,0.05));
    border: 1px solid rgba(230,57,70,0.25);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--red);
    margin: 0 auto 16px;
}

.auth-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px; font-weight: 800; color: #fff;
    margin-bottom: 6px;
}
.auth-card-sub { font-size: 14px; color: var(--muted); }

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px; font-weight: 600; color: var(--muted);
    margin-bottom: 7px;
}

.input-wrap { position: relative; }
.input-icon {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    color: var(--dim); font-size: 13px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: #fff;
    padding: 12px 44px 12px 38px;
    border-radius: 10px;
    font-size: 14px; font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s;
}
.form-input:focus {
    border-color: rgba(230,57,70,0.5);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.08);
}
.form-input::placeholder { color: var(--dim); }
.form-input.is-error {
    border-color: rgba(230,57,70,0.6);
    background: rgba(230,57,70,0.05);
}

.form-error {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: #f87171; margin-top: 5px;
}

.pwd-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--dim);
    cursor: pointer; font-size: 14px; padding: 4px;
    transition: color 0.2s;
}
.pwd-toggle:hover { color: var(--muted); }

.forgot-link {
    font-size: 12px; color: var(--red);
    transition: color 0.2s;
}
.forgot-link:hover { color: var(--red-dark); }

/* Checkbox */
.checkbox-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-wrap input { display: none; }
.checkbox-box {
    width: 18px; height: 18px; border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    flex-shrink: 0; transition: all 0.2s;
    position: relative;
}
.checkbox-wrap input:checked + .checkbox-box {
    background: var(--red); border-color: var(--red);
}
.checkbox-wrap input:checked + .checkbox-box::after {
    content: '✓';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    color: #fff; font-size: 11px; font-weight: 700;
}

/* Submit btn */
.btn-submit {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, var(--red), #b5179e);
    color: #fff;
    font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700;
    border: none; border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(230,57,70,0.3);
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(230,57,70,0.5);
}
.btn-submit:active { transform: translateY(0); }

/* Divider */
.auth-divider {
    position: relative; text-align: center;
    margin: 22px 0;
}
.auth-divider::before {
    content: '';
    position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: rgba(255,255,255,0.07);
}
.auth-divider span {
    position: relative; background: var(--bg);
    padding: 0 12px;
    font-size: 12px; color: var(--dim);
}

/* Switch link */
.auth-switch {
    text-align: center;
    font-size: 14px; color: var(--muted);
    margin-bottom: 16px;
}
.auth-switch-link {
    color: var(--red); font-weight: 600;
    margin-left: 4px; transition: color 0.2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.auth-switch-link:hover { color: var(--red-dark); }

/* Back to home */
.back-home {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 13px; color: var(--dim);
    transition: color 0.2s;
}
.back-home:hover { color: var(--muted); }

/* Alert */
.alert {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-radius: 10px;
    font-size: 13px; margin-bottom: 18px;
}
.alert-success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: #4ade80;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-left  { display: none; }
    .auth-right { padding: 32px 20px; }
}