/* =========================
   BASE RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070707;
    --panel: rgba(10, 10, 10, 0.92);
    --accent: #ff1a1a;
    --accent-soft: rgba(255, 26, 26, 0.22);
    --text: #f2f2f2;
    --muted: #8a8a8a;
}

/* =========================
   BACKGROUND (RESTORED + CLEANED)
========================= */
body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    color: var(--text);
    background: var(--bg);
}

/* main ambient glow */
.background-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(circle at 50% 30%, rgba(255,0,0,0.12), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(255,0,0,0.06), transparent 60%),
        linear-gradient(to bottom, #050505, #0a0a0a);
}

/* GRID (restored properly) */
.background-overlay::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

    background-size: 60px 60px;
    opacity: 0.20;

    pointer-events: none;
}

/* =========================
   CENTER LAYOUT
========================= */
.login-container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   LOGIN CARD (SAFE VERSION)
========================= */
.login-card {
    width: 390px;
    padding: 42px 38px;

    background: var(--panel);
    border: 1px solid rgba(255, 0, 0, 0.15);
    border-top: 2px solid var(--accent-soft);

    border-radius: 10px;

    box-shadow:
        0 0 25px rgba(255, 0, 0, 0.08),
        inset 0 0 30px rgba(255, 0, 0, 0.04);

    text-align: center;

    position: relative;
    overflow: hidden;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 40px rgba(255, 0, 0, 0.10),
        0 25px 70px rgba(0, 0, 0, 0.75);
}

/* scanline RESTORED (but controlled) */
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        transparent
    );

    animation: scan 2.8s linear infinite;
    opacity: 0.7;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =========================
   LOGO
========================= */
.logo {
    width: 220px;
    margin-bottom: 18px;

    filter: drop-shadow(0 0 8px rgba(255,0,0,0.25));
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    letter-spacing: 3px;
    text-transform: uppercase;

    margin-bottom: 8px;
}

.subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 26px;
}

/* =========================
   BUTTON (FIXED + CLEAN GLOW)
========================= */
.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 14px;

    border-radius: 8px;

    background: linear-gradient(90deg, #ff1414, #b30000);
    color: white;

    font-weight: 700;
    letter-spacing: 1px;

    text-decoration: none;

    border: 1px solid rgba(255, 0, 0, 0.25);

    position: relative;
    overflow: hidden;

    transition: 0.2s ease;

    box-shadow: 0 0 18px rgba(255,0,0,0.12);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(255,0,0,0.25);
}

.discord-btn:active {
    transform: scale(0.98);
}

/* shine FIXED (needs overflow hidden from parent, now correct) */
.discord-btn::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.12),
        transparent
    );

    transform: translateX(-120%);
}

.discord-btn:hover::after {
    animation: shine 0.9s ease forwards;
}

.discord-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

@keyframes shine {
    to { transform: translateX(120%); }
}

/* =========================
   FOOTER
========================= */
.footer {
    margin-top: 22px;
    font-size: 11px;
    color: #666;
    letter-spacing: 0.5px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 420px) {
    .login-card {
        width: 92%;
        padding: 32px 20px;
    }

    h1 {
        font-size: 22px;
    }

    .logo {
        width: 180px;
    }
}