:root {
    --bg-dark: #07070c;
    --card-bg: rgba(13, 13, 23, 0.5);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-focus-bg: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 255, 255, 0.25);
    --text: #ffffff;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    /* Neuer, moderner Gradient passend zur Regenbogen-Ästhetik */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
}

* { 
    box-sizing: border-box; 
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

body { 
    background-color: var(--bg-dark);
    color: var(--text); 
    margin: 0; 
    padding: 0; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* GENERIERTEN SCHIMMER-HINTERGRUND STYLEN */
.blob-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    mix-blend-mode: screen;
    animation: floatBlob infinite ease-in-out;
}

/* Sanfte, schwebende Zufalls-Bewegung */
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.15); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

.container { width: 100%; max-width: 420px; padding: 40px; margin-bottom: 60px; z-index: 10; }

/* Premium Glassmorphismus Karte */
.card { 
    background: var(--card-bg); 
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid var(--border); 
    border-radius: 32px; /* Perfekte, weiche Ecken für die Box */
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.7); 
}

.header { margin-bottom: 30px; }
h1 { text-align: center; margin: 0 0 8px 0; font-weight: 900; font-size: 34px; letter-spacing: -0.5px; }
.gradient-text { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
p { text-align: center; color: var(--text-muted); font-size: 15px; margin: 0; line-height: 1.4; font-weight: 600; }

/* Tabs (Restlos abgerundet) */
.tabs {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 9999px; 
    padding: 4px;
    margin-bottom: 30px;
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 9999px;
    transition: all 0.3s ease;
    z-index: 2;
}
.tab-btn.active { color: var(--text); }
.tab-indicator {
    position: absolute;
    top: 4px; left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 9999px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}
.tabs[data-active="register"] .tab-indicator {
    transform: translateX(100%);
}

/* Form Container & premium Fade-In */
.form-container { display: grid; }
.auth-form { 
    grid-area: 1 / 1; 
    opacity: 0; 
    visibility: hidden; 
    transform: scale(0.96) translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s; 
}
.auth-form.active { 
    opacity: 1; 
    visibility: visible; 
    transform: scale(1) translateY(0);
    pointer-events: auto; 
}

.input-group { margin-bottom: 16px; }
input { 
    width: 100%; 
    background: var(--input-bg); 
    border: 1px solid var(--border); 
    color: var(--text); 
    border-radius: 9999px; /* Restlos abgerundet */
    padding: 16px 24px; /* Mehr horizontales Padding gegen Textclipping */
    font-size: 15px; 
    outline: none; 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    font-weight: 600;
}
input::placeholder { color: rgba(255, 255, 255, 0.3); }
input:focus { 
    border-color: var(--border-focus); 
    background: var(--input-focus-bg); 
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.02); 
}

/* Primary Button (Restlos abgerundet) */
button.primary-btn { 
    width: 100%; 
    background: var(--primary-gradient); 
    color: white; 
    border: none; 
    padding: 16px 24px; 
    border-radius: 9999px;
    font-size: 16px; 
    font-weight: 800; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    margin-top: 10px;
}
button.primary-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4); 
}
button.primary-btn:active { 
    transform: translateY(0) scale(0.98); 
}
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* LOADING UX SPINNER */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
.error { color: var(--error); font-weight: 700; font-size: 14px; margin-bottom: 15px; text-align: center; }
.success-text { color: var(--success); font-weight: 700; font-size: 14px; margin-bottom: 15px; text-align: center; }

/* FOOTER */
footer {
    position: absolute;
    bottom: 24px;
    width: 100%;
    text-align: center;
    z-index: 10;
}
footer p { font-size: 13px; color: rgba(255, 255, 255, 0.35); font-weight: 600; }
footer a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.2s ease; font-weight: 700; }
footer a:hover { color: var(--text); text-decoration: underline; }

