:root {
    --bg-dark: #09090b;
    --bg-glass: rgba(20, 20, 25, 0.6); 
    --bg-input: rgba(39, 39, 42, 0.5);
    
    --brand-purple: #8b5cf6;
    --brand-lightred: #ef4444;
    --brand-gradient: linear-gradient(135deg, #ef4444 0%, #8b5cf6 100%);
    
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --success: #10b981; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- CANVAS HINTERGRUND --- */
#bgCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* --- LOGIN WRAPPER --- */
.view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.view > * { pointer-events: auto; }

/* --- LOGO --- */
.logo-img {
    max-width: 380px;
    width: 85%;       
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.6));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --- GLAS KARTE --- */
.auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 3.5rem 3rem; 
    width: 90%;
    max-width: 500px; 
    text-align: center;
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    animation: cardEnter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes cardEnter { to { opacity: 1; transform: translateY(0); } }

.auth-card h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- INPUTS --- */
form { display: flex; flex-direction: column; gap: 20px; }

input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.05);
    color: white;
    padding: 16px 20px; 
    font-size: 1.05rem;
    border-radius: 14px;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input::placeholder { color: rgba(255, 255, 255, 0.3); }
input:hover { background: rgba(255, 255, 255, 0.08); }

input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

/* --- BUTTON --- */
.btn-grad {
    width: 100%;
    padding: 16px;
    margin-top: 15px;
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-grad:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}
.btn-grad:active { transform: scale(0.98); }

/* --- TOASTS --- */
#toast-box {
    position: fixed; top: 20px; right: 20px; z-index: 10000;
    display: flex; flex-direction: column; gap: 10px;
}
.toast { 
    background: rgba(24, 24, 27, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid; 
    padding: 16px 20px; 
    border-radius: 12px; 
    color: white; 
    min-width: 280px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    animation: slideIn 0.4s forwards;
    font-size: 0.9rem; font-weight: 500;
}
.toast.error { border-left-color: var(--brand-lightred); }
.toast.success { border-left-color: var(--success); }
.toast.info { border-left-color: var(--brand-purple); }
.toast.hide { animation: slideOut 0.4s forwards; }

@keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(50px); } }