/**
 * =============================================================================
 * SILBERRADAR.EU - AUTH STYLES
 * =============================================================================
 * Styles für Login, Registrierung, Recovery und Account-Verwaltung
 * Sprint: 11
 * =============================================================================
 */

/* =============================================================================
   AUTH LAYOUT
   ============================================================================= */

.auth-body {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 0%, rgba(201, 165, 92, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(74, 158, 204, 0.06) 0%, transparent 50%),
        var(--silver-50);
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    color: var(--text-primary);
}

.auth-body main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-section {
    width: 100%;
    max-width: 480px;
}

.auth-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* =============================================================================
   AUTH CARD
   ============================================================================= */

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--silver-200);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(20, 23, 26, 0.06);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
}

.auth-card-wide {
    max-width: 600px;
}

/* =============================================================================
   AUTH HEADER
   ============================================================================= */

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--silver-700), var(--silver-900));
    color: var(--accent-gold);
    border-radius: 50%;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(20, 23, 26, 0.15);
}

.auth-logo.success-icon {
    background: linear-gradient(135deg, var(--success), #2F855A);
    color: white;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* =============================================================================
   FORMS
   ============================================================================= */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--silver-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 165, 92, 0.15);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Password-Wrapper mit Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--accent-gold);
}

/* Password-Strength-Meter */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--silver-200);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 90px;
    text-align: right;
}

/* =============================================================================
   CHECKBOXES
   ============================================================================= */

.form-group-checkbox {
    flex-direction: row;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.checkbox a:hover {
    color: var(--silver-700);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--silver-700), var(--silver-900));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--silver-800), var(--silver-900));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 23, 26, 0.2);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--silver-300);
}

.btn-secondary:hover {
    background: var(--silver-50);
    border-color: var(--accent-gold);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #C53030;
}

.btn-block {
    width: 100%;
}

/* =============================================================================
   ALERTS
   ============================================================================= */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.auth-alert svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.auth-alert-error {
    background: rgba(229, 62, 62, 0.08);
    color: #C53030;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.auth-alert-success {
    background: rgba(56, 161, 105, 0.08);
    color: #276749;
    border: 1px solid rgba(56, 161, 105, 0.2);
}

.auth-alert-info {
    background: rgba(74, 158, 204, 0.08);
    color: #2C5282;
    border: 1px solid rgba(74, 158, 204, 0.2);
}

/* =============================================================================
   INFO BOXES
   ============================================================================= */

.auth-info-box {
    background: rgba(201, 165, 92, 0.08);
    border: 1px solid rgba(201, 165, 92, 0.25);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.auth-info-box-warning {
    background: rgba(214, 158, 46, 0.08);
    border-color: rgba(214, 158, 46, 0.25);
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.auth-info-box strong {
    color: var(--text-primary);
}

/* =============================================================================
   AUTH LINKS
   ============================================================================= */

.auth-links {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--silver-200);
}

.auth-links a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    color: var(--silver-700);
    text-decoration: underline;
}

.auth-links .separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.auth-footer .separator {
    margin: 0 0.5rem;
}

/* =============================================================================
   RECOVERY CODES DISPLAY
   ============================================================================= */

.recovery-warning {
    background: rgba(214, 158, 46, 0.08);
    border: 1px solid rgba(214, 158, 46, 0.3);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.recovery-warning h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #B7791F;
}

.recovery-warning p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.recovery-warning p:last-child {
    margin-bottom: 0;
}

.recovery-warning-strong {
    font-weight: 600;
    color: var(--danger) !important;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    background: var(--silver-50);
    border: 1px solid var(--silver-200);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.recovery-code {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--silver-200);
    border-radius: 6px;
}

.code-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 600;
}

.code-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.recovery-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.recovery-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.75rem;
}

.recovery-confirm {
    background: var(--silver-50);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 540px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .recovery-codes {
        grid-template-columns: 1fr;
    }
    
    .recovery-actions {
        flex-direction: column;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
}
