/* ============================================
   Auth-Seiten (Login, Registrierung, Passwort-Reset)
   ============================================ */

.auth-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh; /* dynamische Höhe – berücksichtigt iOS-Safari UI */
    padding: 2vh 20px 20px;
    background: var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo .logo-icon {
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}
.auth-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}
.auth-form .form-group:last-of-type {
    margin-bottom: 24px;
}

.auth-form .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-form .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* AGB Checkbox */
.agb-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.agb-text a { color: var(--primary); }

/* Password Strength */
.password-strength {
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.password-strength .strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.strength-weak { width: 25%; background: var(--danger); }
.strength-medium { width: 50%; background: var(--warning); }
.strength-strong { width: 75%; background: var(--success); }
.strength-very-strong { width: 100%; background: var(--success); }

/* Auth Messages */
.auth-message {
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.auth-message.success {
    background: var(--success-bg);
    color: var(--success);
}
.auth-message.error {
    background: var(--danger-bg);
    color: var(--danger);
}

@media (max-width: 480px) {
    .auth-container { padding: 1vh 16px 16px; }
    .auth-card { padding: 16px 18px 20px; }
    .auth-logo { margin-bottom: 14px !important; }
    .auth-logo .logo-icon { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: 6px; }
    .auth-logo h1 { font-size: 1.3rem; margin-bottom: 2px; }
    .auth-logo p { font-size: 0.82rem; }

    /* Form-Kompaktion (greift auf Login + Register + Reset) */
    .auth-form .form-group { margin-bottom: 10px; }
    .auth-form .form-label { font-size: 0.82rem; margin-bottom: 4px; }
    .auth-form .form-input,
    .auth-form .form-select { padding: 9px 12px; font-size: 0.95rem; }
    .auth-form .password-strength { height: 3px; margin-top: 6px; }
    .auth-form .form-checkbox { font-size: 0.85rem; }

    /* Submit-Button etwas kompakter */
    .auth-form .btn { padding: 11px 16px; font-size: 0.95rem; }

    .auth-footer { margin-top: 12px !important; font-size: 0.82rem !important; }
}
