@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #1e293b;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Uno Colors */
    --uno-red: #ef4444;
    --uno-blue: #3b82f6;
    --uno-green: #22c55e;
    --uno-yellow: #eab308;
    --uno-wild: linear-gradient(135deg, #ef4444 25%, #eab308 25%, #eab308 50%, #22c55e 50%, #22c55e 75%, #3b82f6 75%);
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(239, 68, 68, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(234, 179, 8, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(34, 197, 94, 0.15) 0px, transparent 50%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

body.my-turn {
    background-color: #450a0a;
    box-shadow: inset 0 0 200px rgba(239, 68, 68, 0.7);
}

/* Glassmorphism Container */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 3px solid #111;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.8);
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.3);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: 3px solid #111;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
    text-align: center;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.8);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.8);
}

.btn:active {
    transform: translateY(0);
}

.btn.secondary {
    background: transparent;
    border: 3px solid #111;
    color: white;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Auth Switcher */
.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

#auth-error {
    color: var(--uno-red);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* Auth Container Size */
.auth-container {
    width: 100%;
    max-width: 400px;
}
