/* =====================================================
   steuererklaerung.jetzt - Auth Styles V1.04
   Login, Register, Password Reset
   ===================================================== */

/* Auth Page Layout */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-page);
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-box {
    width: 100%;
    max-width: 440px;
}

/* Auth Header (Logo centered) */
.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-header);
    text-decoration: none;
    margin-bottom: var(--space-md);
}

.auth-logo .logo-icon {
    font-size: 2rem;
}

.auth-logo .highlight {
    color: var(--color-accent-tertiary);
}

.auth-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Auth Card (Mask) */
.auth-card {
    background: var(--color-mask-bg);
    border: 2px solid var(--color-mask-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-mask);
}

/* Social Login Section */
.social-login {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.btn-google {
    border-color: #E0E0E0;
}

.btn-google svg {
    color: var(--color-google);
}

.btn-apple svg {
    color: var(--color-apple);
}

/* Form Actions */
.form-actions {
    margin-top: var(--space-xl);
}

.form-footer {
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(83, 129, 197, 0.2);
}

.form-footer p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.form-footer a {
    color: var(--color-accent-secondary);
    font-weight: 500;
}

/* Password Field with Toggle */
.password-field {
    position: relative;
}

.password-field .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--color-mask-text);
}

/* Forgot Password Link */
.forgot-password {
    display: block;
    text-align: right;
    font-size: var(--font-size-sm);
    color: var(--color-accent-secondary);
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-lg);
}

.forgot-password:hover {
    color: var(--color-btn-primary);
}

/* Terms Checkbox */
.terms-check {
    margin-top: var(--space-lg);
}

.terms-check .form-check-label {
    line-height: 1.5;
}

/* Auth Footer */
.auth-page-footer {
    text-align: center;
    padding: var(--space-lg);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.auth-page-footer a {
    color: var(--color-text-muted);
    margin: 0 var(--space-sm);
}

.auth-page-footer a:hover {
    color: var(--color-accent-secondary);
}

/* Success State (Email Verification) */
.auth-success {
    text-align: center;
    padding: var(--space-xl) 0;
}

.auth-success-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.auth-success h2 {
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.auth-success p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

/* Resend Link */
.resend-link {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.resend-link a {
    color: var(--color-accent-secondary);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: var(--space-sm);
}

.strength-bar {
    height: 4px;
    background: var(--color-field-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    transition: width var(--transition-base), background var(--transition-base);
}

.strength-bar-fill.weak {
    width: 25%;
    background: var(--color-error);
}

.strength-bar-fill.fair {
    width: 50%;
    background: var(--color-warning);
}

.strength-bar-fill.good {
    width: 75%;
    background: var(--color-info);
}

.strength-bar-fill.strong {
    width: 100%;
    background: var(--color-success);
}

.strength-text {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

/* Email Verification Badge */
.email-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-info-bg);
    color: var(--color-info);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
    margin-top: var(--space-sm);
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: var(--color-btn-primary-text);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: var(--space-md);
    }
    
    .auth-card {
        padding: var(--space-lg);
    }
    
    .auth-logo {
        font-size: var(--font-size-xl);
    }
}
