:root {
    --bg-dark: #231F20;
    --accent: #4f46e5;     /* Dein Lila/Blau Ton */
    --accent-glow: rgba(79, 70, 229, 0.5);
    --text: #ffffff;
    --error: #ff4444;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- SPLASH SCREEN (NEU & COOLER) --- */
#splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.logo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

/* Das eigentliche Logo */
.wiwo-logo {
    width: 100px;
    height: 100px;
    z-index: 2;
    border-radius: 20px; /* Falls Icon eckig ist */
    animation: logoPulse 2s infinite ease-in-out;
}

/* Der rotierende Ring */
.loader-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 15px var(--accent-glow);
}

.loader-ring::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.5);
    animation: spin 3s linear infinite reverse;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes logoPulse { 
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-glow)); } 
    50% { transform: scale(1.05); filter: drop-shadow(0 0 20px var(--accent)); } 
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #aaa, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShine 3s linear infinite;
}

@keyframes textShine { 0% { background-position: -200%; } 100% { background-position: 200%; } }

.status-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
}

/* --- LOGIN SCREEN (Clean & Glass) --- */
.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

#login-wrapper {
    width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    background: radial-gradient(circle at center, #2a2530 0%, #000000 100%);
    transition: opacity 1s ease;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%; max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-card h3 { text-align: center; margin-bottom: 2rem; font-weight: 400; letter-spacing: 1px; }

.input-group { margin-bottom: 1.5rem; position: relative; }
.input-group input {
    width: 100%; padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white; font-size: 1rem; outline: none;
    transition: border-color 0.3s, background 0.3s;
}
.input-group input:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.5); }

button {
    width: 100%; padding: 14px;
    background: var(--accent);
    color: white; border: none; border-radius: 12px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}
button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6); }
button:disabled { opacity: 0.7; cursor: wait; }

.error-msg { color: var(--error); text-align: center; margin-bottom: 1rem; font-size: 0.9rem; min-height: 20px; }