/* ============================================================
   VegaX — Login / Registro (preto puro, estética X)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root {
    --bg:       #000000;
    --fg:       #ffffff;
    --muted:    rgba(255, 255, 255, 0.62);
    --faint:    rgba(255, 255, 255, 0.40);
    --line:     rgba(255, 255, 255, 0.10);
    --line-2:   rgba(255, 255, 255, 0.18);
    --surface:  rgba(255, 255, 255, 0.05);
    --display:  'Bricolage Grotesque', sans-serif;
    --body:     'Geist', -apple-system, system-ui, sans-serif;
    --mono:     'Geist Mono', ui-monospace, monospace;
    --ease:     cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--body);
    letter-spacing: -0.01em;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: #fff; color: #000; }
a { color: inherit; text-decoration: none; }

/* fundo de paths */
.paths { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.85; }
.paths-layer { position: absolute; inset: -12%; will-change: transform; transform: translateZ(0); }
.paths-layer.a { animation: drift1 34s ease-in-out infinite alternate; }
.paths-layer.b { animation: drift2 40s ease-in-out infinite alternate; }
.paths-layer svg { width: 100%; height: 100%; display: block; }
.paths-layer path { fill: none; stroke: #fff; }
@keyframes drift1 { from { transform: translate3d(-1.4%,-1%,0) rotate(-.5deg) scale(1.02);} to { transform: translate3d(1.4%,1%,0) rotate(.5deg) scale(1.05);} }
@keyframes drift2 { from { transform: translate3d(1.4%,1%,0) rotate(.4deg) scale(1.04);} to { transform: translate3d(-1.4%,-1%,0) rotate(-.4deg) scale(1.01);} }

/* vinheta */
body::after {
    content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(100% 80% at 50% 0%, transparent 35%, rgba(0,0,0,.6) 75%, #000 100%);
}

/* card */
.auth {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 42px 38px 34px;
    box-shadow: 0 40px 100px rgba(0,0,0,.7);
    animation: rise .7s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.auth-brand {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em;
    margin-bottom: 6px;
}
.auth-brand .star { font-size: 19px; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth h1 {
    font-family: var(--display); font-weight: 700; font-size: 23px;
    letter-spacing: -0.03em; text-align: center; margin-top: 18px;
}
.auth .sub { text-align: center; color: var(--muted); font-size: 14px; font-weight: 300; margin: 7px 0 26px; }

/* abas login / registro */
.auth-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 999px; padding: 4px; margin-bottom: 26px;
}
.auth-tabs a {
    text-align: center; padding: 9px 0; border-radius: 999px;
    font-size: 13.5px; font-weight: 500; color: var(--muted); transition: all .2s;
}
.auth-tabs a.active { background: #fff; color: #000; }
.auth-tabs a:not(.active):hover { color: #fff; }

/* campos */
.field { margin-bottom: 16px; }
.field label {
    display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}
.field input {
    width: 100%; background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; padding: 13px 14px; color: var(--fg); font-size: 15px;
    font-family: inherit; transition: border-color .2s, background .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--line-2); background: rgba(255,255,255,.07); }

/* botão */
.auth-btn {
    position: relative; overflow: hidden;
    width: 100%; margin-top: 8px;
    background: #fff; color: #000; border: none; cursor: pointer;
    border-radius: 999px; padding: 14px; font-family: var(--body);
    font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
    transition: transform .25s var(--ease);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover { transform: translateY(-2px); }
.auth-btn::before {
    content: ""; position: absolute; inset: -2px -40%;
    background: linear-gradient(110deg, transparent 30%, rgba(0,0,0,.12) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .9s var(--ease);
}
.auth-btn:hover::before { transform: translateX(120%); }

/* erro */
.auth-error {
    background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.35);
    color: #ff9b9b; font-size: 13.5px; padding: 11px 14px; border-radius: 12px; margin-bottom: 20px;
}

.auth-foot { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.auth-foot a { color: #fff; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.auth-foot a:hover { border-color: #fff; }

.auth-back {
    display: block; text-align: center; margin-top: 18px;
    color: var(--faint); font-size: 12.5px; font-family: var(--mono); letter-spacing: .04em;
    transition: color .2s;
}
.auth-back:hover { color: #fff; }

.hint { font-size: 12px; color: var(--faint); margin-top: 7px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
