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

body {
    font-family: Inter, system-ui, sans-serif;
    color: #f5f3ff;

    background: #000000;

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

/* ===== PURE DARK SPACE BACKGROUND ===== */
.background {
    position: fixed;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(circle at 20% 30%, rgba(120, 60, 255, 0.10), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(90, 0, 160, 0.08), transparent 45%),
        radial-gradient(circle at 60% 80%, rgba(160, 100, 255, 0.06), transparent 50%),
        #000;
}

/* subtle vignette for depth */
.background::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at center,
        transparent 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* ===== MAIN CARD ===== */
.container {
    width: min(420px, 90%);
    text-align: center;

    background: rgba(12, 10, 20, 0.75);
    border: 1px solid rgba(160, 100, 255, 0.15);
    border-radius: 20px;

    padding: 2rem;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 0 30px rgba(120, 60, 255, 0.15),
        0 0 80px rgba(120, 60, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* ===== TEXT ===== */
h1 {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;

    color: #f5f3ff;

    text-shadow: 0 0 12px rgba(160, 100, 255, 0.35);
}

.subtitle {
    color: #c4b5ff;
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

/* ===== LINKS ===== */
.links {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

a {
    display: block;
    text-decoration: none;
    color: #fff;

    background: rgba(120, 60, 255, 0.10);
    border: 1px solid rgba(180, 130, 255, 0.16);

    padding: 1rem;
    border-radius: 14px;

    transition: 0.25s;
}

a:hover {
    transform: translateY(-3px);

    background: rgba(140, 80, 255, 0.18);

    box-shadow:
        0 0 18px rgba(140, 80, 255, 0.18);
}

/* =========================
   ERROR THEME
   ========================= */

body.error .background {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 60, 60, 0.12), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(160, 0, 0, 0.10), transparent 45%),
        radial-gradient(circle at 60% 80%, rgba(255, 80, 80, 0.08), transparent 50%),
        #000;
}

body.error .container {
    background: rgba(20, 5, 5, 0.78);
    border: 1px solid rgba(255, 80, 80, 0.25);

    box-shadow:
        0 0 30px rgba(255, 60, 60, 0.20),
        0 0 80px rgba(255, 60, 60, 0.08),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* text tuning */
body.error h1 {
    color: #fff2f2;
    text-shadow: 0 0 16px rgba(255, 60, 60, 0.55);
}

body.error .subtitle {
    color: #ffb3b3;
    margin-bottom: 0.4rem;
}

/* 🔴 FIX: links also fully red-tinted */
body.error a {
    background: rgba(255, 60, 60, 0.10);
    border: 1px solid rgba(255, 100, 100, 0.22);
}

body.error a:hover {
    background: rgba(255, 60, 60, 0.18);
    box-shadow: 0 0 18px rgba(255, 60, 60, 0.25);
}
