:root {
    --bg-black: #060709;
    --anthracite: #191c23;
    --neon: #39ff14;
    --neon-glow: rgba(57, 255, 20, 0.4);
    --text-main: #e5e7eb;
    --text-muted: #8b92a0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

body {
    background: radial-gradient(circle at 50% 45%, #12151b 0%, var(--bg-black) 75%);
    color: var(--text-main);
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.7s ease;
}

body.lights-on {
    background: radial-gradient(circle at 58% 10%, #202630 0%, #0e1015 55%, #050608 100%);
}

.floor {
    width: 100%;
    height: 90px;
    background: linear-gradient(180deg, #181b22 0%, #090b0e 60%, #040507 100%);
    border-top: 2px solid #232832;
    box-shadow: inset 0 12px 25px rgba(0, 0, 0, 0.75);
    z-index: 3;
    flex-shrink: 0;
    transition: border-color 0.6s ease;
}
body.lights-on .floor { border-top-color: rgba(57, 255, 20, 0.4); }

.stage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: calc(100dvh - 90px);
    margin: 0 auto;
}

/* Deckenlampe & Lichtkegel */
.ceiling-lamp {
    position: absolute;
    top: 0;
    left: 58%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
    pointer-events: none;
}
.lamp-cord { width: 4px; height: 68px; background: linear-gradient(90deg, #161920, #383f4d, #161920); }
.lamp-shade {
    width: 96px;
    height: 30px;
    background: linear-gradient(180deg, #2d333f 0%, #171a21 100%);
    border: 1px solid #3c4352;
    border-radius: 48px 48px 8px 8px;
}
.lamp-bulb {
    width: 28px;
    height: 14px;
    background: #242933;
    border-radius: 0 0 14px 14px;
    margin-top: -2px;
    transition: all 0.25s ease;
}
body.lights-on .lamp-bulb {
    background: var(--neon);
    box-shadow: 0 0 25px var(--neon), 0 0 65px var(--neon), 0 15px 90px var(--neon);
}

.ceiling-beam {
    position: absolute;
    top: 100px;
    left: 58%;
    transform: translateX(-50%);
    width: 560px;
    height: calc(100% - 100px);
    background: linear-gradient(180deg, rgba(57, 255, 20, 0.18) 0%, rgba(57, 255, 20, 0.04) 70%, transparent 100%);
    clip-path: polygon(43% 0%, 57% 0%, 100% 100%, 0% 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1;
}
body.lights-on .ceiling-beam { opacity: 1; }

/* Login-Fenster */
.login-card {
    position: absolute;
    top: 54%;
    left: 58%;
    width: 350px;
    background: rgba(22, 24, 29, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(57, 255, 20, 0.45);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(57, 255, 20, 0.15);
    border-radius: 14px;
    padding: 28px;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.92);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-card.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

.login-card h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.45rem;
    color: var(--neon);
    text-shadow: 0 0 12px var(--neon-glow);
    text-transform: uppercase;
}

.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.input-group input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid #2e3440;
    background: #0d0f13;
    color: #fff;
    font-size: 16px;
    outline: none;
}
.input-group input:focus { border-color: var(--neon); box-shadow: 0 0 10px var(--neon-glow); }

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--neon);
    color: #070809;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    touch-action: manipulation;
}
button:hover { box-shadow: 0 0 22px var(--neon-glow); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.msg-error {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 9px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 14px;
    text-align: center;
}
