:root {
    --bg: #0a0c12;
    --card: rgba(18, 23, 34, 0.9);
    --border: rgba(148, 163, 184, 0.15);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #34d399;
    --accent-2: #22d3ee;
    --danger: #f87171;
    --shadow: 0 40px 80px rgba(3, 7, 18, 0.55);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
                radial-gradient(900px 600px at 90% 10%, rgba(52, 211, 153, 0.14), transparent 55%),
                var(--bg);
    color: var(--text);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    position: relative;
    overflow: hidden;
}
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.25;
    pointer-events: none;
}
body::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -120px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
    filter: blur(8px);
    opacity: 0.8;
    pointer-events: none;
}
.wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 20px;
    position: relative;
    z-index: 1;
}
.card {
    width: min(420px, 100%);
    padding: 28px 28px 24px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    animation: rise 650ms ease both;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
}
.logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0a0c12;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.35);
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
h1 {
    margin: 6px 0 2px;
    font-size: 22px;
    font-weight: 600;
}
.subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}
.stack {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 6px;
}
input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(12, 16, 24, 0.9);
    color: var(--text);
    outline: none;
    font-size: 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
input:focus {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
button {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #16a34a);
    color: #04130c;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
    margin-top: 4px;
}
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(52, 211, 153, 0.25);
}
.error {
    min-height: 18px;
    font-size: 12px;
    color: var(--danger);
}
.links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 10px;
    color: var(--muted);
}
.links a {
    color: #7dd3fc;
    text-decoration: none;
}
.links a:hover { text-decoration: underline; }
.note {
    margin-top: 12px;
    font-size: 11px;
    color: var(--muted);
    font-family: "JetBrains Mono", ui-monospace, monospace;
}
@media (prefers-reduced-motion: reduce) {
    .card, button { animation: none; transition: none; }
}
