/* Aus login.php ausgelagert (Etappe 2.4) — vorher inline im <head> */

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f1117 0%, #1a1d28 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3f4f6;
}
.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-card {
    background: #161921;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    color: #E94E1B;
}
.logo-img { height: 40px; width: auto; }
h1 { text-align: center; font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.subtitle {
    text-align: center; color: #9ca3af; margin-bottom: 28px;
    font-size: 0.875rem; line-height: 1.5;
}
.company-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(233, 78, 27, 0.12); color: #E94E1B;
    padding: 4px 12px; border-radius: 6px;
    font-size: 0.8125rem; font-weight: 500;
    margin-bottom: 24px; width: fit-content;
    margin-left: auto; margin-right: auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; color: #9ca3af; margin-bottom: 8px; }
.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #1c2028;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f3f4f6;
    font-size: 1rem;
    outline: none;
    transition: all 0.15s ease;
}
.form-group input:focus { border-color: rgba(244, 86, 37, 0.5); background: #22262f; }
.form-group input::placeholder { color: #6b7280; }
/* TOTP Code Input */
.totp-input {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    padding: 14px 16px;
    font-family: 'DM Sans', monospace;
}
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}
.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
}
.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}
.btn {
    width: 100%;
    padding: 14px 24px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: #E94E1B; }
.btn-primary:hover:not(:disabled) { background: #ff6b3d; }
.btn-secondary {
    background: #1c2028;
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover { background: #22262f; border-color: rgba(255,255,255,0.2); }
.divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0; color: #4b5563; font-size: 0.75rem;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(255,255,255,0.06);
}
.info-box {
    margin-top: 24px; padding: 16px;
    background: rgba(244, 86, 37, 0.08);
    border-radius: 8px; font-size: 0.8125rem;
    color: #9ca3af; line-height: 1.6;
}
.info-box strong { color: #E94E1B; }
.hint {
    margin-top: 20px; font-size: 0.8125rem;
    color: #6b7280; text-align: center; line-height: 1.5;
}
.hint a { color: #9ca3af; text-decoration: underline; }
/* QR-Code Container */
.qr-container {
    display: flex; flex-direction: column; align-items: center;
    margin: 12px 0; padding: 12px;
    background: #fff; border-radius: 10px;
}
.qr-container canvas { border-radius: 8px; }
.secret-display {
    margin-top: 16px; padding: 10px 16px;
    background: #1c2028; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; font-family: monospace; font-size: 0.875rem;
    color: #f59e0b; text-align: center; word-break: break-all;
    cursor: pointer; position: relative;
}
.secret-display:hover::after {
    content: 'Kopieren'; position: absolute;
    top: -28px; left: 50%; transform: translateX(-50%);
    background: #22262f; color: #9ca3af;
    padding: 2px 8px; border-radius: 4px; font-size: 0.75rem;
}
.step-indicator {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 24px;
}
.step-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.12);
}
.step-dot.active { background: #E94E1B; width: 24px; border-radius: 4px; }
.step-dot.done { background: #10b981; }
/* AUP-Box: Erklaerung zur Rechtsgrundlage */
.aup-box {
    margin: 20px 0 16px;
    padding: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #d1d5db;
}
.aup-box .aup-title {
    display: flex; align-items: center; gap: 8px;
    color: #f59e0b; font-weight: 600;
    margin-bottom: 8px; font-size: 0.875rem;
}
.aup-box .aup-text { margin-bottom: 12px; color: #9ca3af; }
.aup-checkbox {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; user-select: none;
}
.aup-checkbox input[type="checkbox"] {
    margin-top: 2px; width: 16px; height: 16px;
    accent-color: #E94E1B; cursor: pointer; flex-shrink: 0;
}
.aup-checkbox span { color: #f3f4f6; font-weight: 500; }
/* Loading Spinner */
.spinner {
    display: none; width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading .spinner { display: inline-block; }
.loading .btn-text { display: none; }
