:root {
    --bg: #0b0f1a;
    --border: rgba(255,255,255,0.12);
    --cardBG1: rgba(255,255,255,.10);
    --cardBG2: rgba(255,255,255,.04);
    --text: #e9ecf1;
    --hue: 130;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    overflow: hidden;
}


/* Background stage */
.stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 10% 0%, rgba(80,100,255,.10), transparent 60%),
        radial-gradient(900px 600px at 120% 20%, rgba(140,90,255,.10), transparent 60%),
        radial-gradient(800px 800px at -10% 110%, rgba(60,220,200,.10), transparent 60%);
    filter: saturate(1.1);
}

.stage::after {
    content: "";
    position: absolute;
    inset: -200%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='2.2' numOctaves='3' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.035'/></svg>");
    animation: grain 9s linear infinite;
    mix-blend-mode: soft-light;
    pointer-events: none;
}
@keyframes grain { to { transform: translate3d(-10%, -10%, 0); } }


/* Blobs */
.blob {
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    filter: blur(var(--blur, 40px));
    opacity: var(--alpha, 0.55);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.a { background: radial-gradient(circle at 40% 40%, hsl(calc(var(--hue) - 20) 85% 60% / .9), transparent 60%); }
.b { background: radial-gradient(circle at 60% 40%, hsl(calc(var(--hue) + 60) 90% 60% / .85), transparent 60%); }
.c { background: radial-gradient(circle at 50% 50%, hsl(calc(var(--hue) + 180) 70% 55% / .8), transparent 60%); }
.d { background: radial-gradient(circle at 50% 50%, hsl(calc(var(--hue) + 15) 90% 65% / .8), transparent 60%); }
.e { background: radial-gradient(circle at 50% 50%, hsl(calc(var(--hue) + 120) 80% 60% / .75), transparent 60%); }
.f { background: radial-gradient(circle at 50% 50%, hsl(calc(var(--hue) - 80) 85% 62% / .75), transparent 60%); }
.g { background: radial-gradient(circle at 50% 50%, hsl(calc(var(--hue) + 240) 80% 60% / .70), transparent 60%); }
.p1 { left: 18%; top: 26%; --size: 56vmax; --alpha: .45; --blur: 40px; }
.p2 { left: 82%; top: 24%; --size: 48vmax; --alpha: .55; --blur: 38px; }
.p3 { left: 50%; top: 78%; --size: 52vmax; --alpha: .40; --blur: 42px; }
.p4 { left: 10%; top: 78%; --size: 44vmax; --alpha: .35; --blur: 44px; }
.p5 { left: 90%; top: 76%; --size: 46vmax; --alpha: .33; --blur: 46px; }
.p6 { left: 50%; top: 12%; --size: 42vmax; --alpha: .38; --blur: 40px; }
.p7 { left: 50%; top: 50%; --size: 65vmax; --alpha: .25; --blur: 60px; }


/* Card container */
.center {
    position: relative;
    z-index: 10;
    height: 100%;
    display: grid;
    place-items: center;
}

.card {
    width: calc(100% - 40px);
    max-width: 500px;
    padding: 40px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--cardBG1), var(--cardBG2));
    border: 1px solid var(--border);
    backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 0 80px 20px rgba(90,120,255,0.18), 0 0 140px 50px rgba(140,90,255,0.10);
    display: grid;
    place-items: center;
    overflow: hidden;
    transition: height .5s ease;
    will-change: height;
}

.card img {
    height: 100px;
    margin-bottom: 25px;
}

.card h1 {
    margin: 0 0 8px 0;
    font-weight: 700;
}

.card p { margin: 0 0 18px 0; opacity: .85 }

.row { display: grid; gap: 10px; width: 100%; }

.card input, .card button {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.06);
    color: var(--text);
    outline: none;
    margin-bottom: 8px;
}

.tooltip {
    display: none;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 110%;
    left: 15%;
    margin-left: -60px;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.card input::placeholder { color: var(--muted) }

.card input:focus {
    border-color: hsl(calc(var(--hue) + 40) 90% 60% / .9);
    box-shadow: 0 0 0 3px hsl(calc(var(--hue) + 40) 90% 60% / .25);
    background: rgba(255,255,255,.08);
}

.card button {
    margin-top: 6px;
    cursor: pointer;
}

.card button.pri {
    background: linear-gradient(90deg, hsl(calc(var(--hue) - 10) 85% 60%), hsl(calc(var(--hue) + 60) 90% 60%));
    border: none;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    color: var(--bg);
}

.card button.sec {
    background: none;
    border: 2px solid hsl(calc(var(--hue) - 10) 85% 60%);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    color: hsl(calc(var(--hue) - 10) 85% 60%);
    transition-duration: 1s;
}

.card button:hover { transform: translateY(-1px) }

.card button:active { transform: translateY(0) scale(.99) }

input[type="checkbox"] {
    accent-color: hsl(calc(var(--hue) + 60) 90% 60%) !important;
    height: 20px !important; /* not needed */
    width: 20px !important; /* not needed */
}

@media (prefers-reduced-motion: reduce) {
    .stage::after { animation: none }
}


/* crossfade/slide for inner content */
.card > * {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 260ms ease,
        transform 260ms ease
}

.card.is-leaving > * {
    opacity: 0;
    transform: translateY(8px)
}

.card.is-entering > * {
    opacity: 0;
    transform: translateY(-8px)
}

.card.is-entering.is-entered > * {
    opacity: 1;
    transform: translateY(0)
}


/* Minimal loader */
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: hsl(calc(var(--hue) + 60) 90% 60%); /* Brand green */

    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Href */
a {
    text-decoration: none;
    color: white;
}

.href {
    border-bottom: 2px solid hsl(calc(var(--hue) + 60) 90% 60%);
    transition-duration: .5s;
    width: auto;
}

.href:hover {
    background-color: hsl(calc(var(--hue) + 60) 90% 60%);
    color: var(--bg)
}