/* Container für die gesamte Auth-Oberfläche */
.auth-overlay {
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; 
    justify-content: center; /* Horizontale Zentrierung des Overlays */
    align-items: center;     /* Vertikale Zentrierung des Overlays */
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

/* Die Karte selbst */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 50px 40px !important; /* Viel Padding für Abstände zum Rand */
    display: flex;
    flex-direction: column;  /* Elemente untereinander */
    align-items: center;     /* Zentriert alle Elemente innerhalb der Karte */
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Titel und Texte zentrieren */
#auth-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 5px;
    width: 100%;
}

#auth-subtitle {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 25px;
    width: 100%;
}

/* Eingabefelder */
.glass-input {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.glass-input:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Buttons */
#auth-primary-btn {
    width: 100%;
    height: 55px;
    margin-top: 10px;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Footer & Links */
.auth-footer {
    margin-top: 25px;
    font-size: 14px;
    width: 100%;
}

.auth-link {
    color: var(--accent-blue);
    cursor: pointer;
    font-weight: 700;
    margin-left: 5px;
}

/* Toasts (Slide-In) */
.success-toast, .error-toast {
    position: absolute; top: -100px; left: 0; right: 0; height: 65px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-toast { background: rgba(52, 199, 89, 0.95); color: white; }
.error-toast { background: rgba(255, 59, 48, 0.95); color: white; }
.success-toast.show, .error-toast.show { top: 0; }
