/* Anmeldeseite der Verwaltung im einheitlichen AegisSight-Design (Stand 05.10.2026).
   Nachgebaut nach der Anmeldeseite des Monitors (index.html + style.css dort).
   Eigene Datei, damit die Dashboard-Regeln aus style.css nicht hineinwirken.
   Dunkel ist Vorgabe (kein data-theme), hell über data-theme="light" wie im Portal.
   Gold #96791A mit weißer Schrift in beiden Themes. */
:root {
  --bg-primary: #0B1121; --bg-secondary: #1A2440; --bg-card: #151D2E;
  --accent: #96791A; --accent-hover: #7D6516; --accent-pressed: #645112;
  --on-accent: #FFFFFF;
  --text-primary: #E8ECF4; --text-secondary: #8896AB; --text-disabled: #95A3B8;
  --input-bg: #1A2440; --input-border: #1E2D45; --border: #1E2D45;
  --success: #10B981; --error: #EF4444;
  --tint-error: rgba(239, 68, 68, 0.12); --tint-error-strong: rgba(239, 68, 68, 0.3);
  --tint-success: rgba(16, 185, 129, 0.15); --tint-success-strong: rgba(16, 185, 129, 0.3);
  --tint-accent: rgba(150, 121, 26, 0.25);
  --login-bg: #0B1121;
  --font-title: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 4px; --radius-lg: 8px;
}
[data-theme="light"] {
  --bg-primary: #F4F5F7; --bg-secondary: #E8EBF0; --bg-card: #FFFFFF;
  --text-primary: #1A202C; --text-secondary: #4A5568; --text-disabled: #A0AEC0;
  --input-bg: #FFFFFF; --input-border: #CBD5E0; --border: #E2E8F0;
  --success: #059669; --error: #DC2626;
  --login-bg: linear-gradient(135deg, #F4F5F7 0%, #E8EBF0 50%, #F0EDE6 100%);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font-body); font-size: 14px; line-height: 1.6;
  color: var(--text-primary); background: var(--bg-primary); -webkit-font-smoothing: antialiased; }
.skip-link { position: absolute; top: -100%; left: 0; padding: 8px 16px; background: var(--accent); color: var(--on-accent); z-index: 10; }
.skip-link:focus { top: 0; }
/* Box im oberen Drittel, nicht in der geometrischen Mitte (wie im Monitor seit 03.10.2026) */
.login-container { display: flex; align-items: flex-start; justify-content: center; min-height: 100vh;
  padding: clamp(32px, 16vh, 240px) 24px 24px; background: var(--login-bg); }
.login-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px 32px; width: 100%; max-width: 420px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo h1 { font-family: var(--font-title); font-size: 28px; font-weight: 700; color: var(--text-primary); }
.login-logo h1 span { color: var(--accent); }
.login-logo .subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 4px; letter-spacing: 0.5px; font-weight: 500; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.5px; }
.form-group input { width: 100%; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--radius);
  padding: 12px 16px; font-size: 14px; color: var(--text-primary); font-family: var(--font-body); transition: border-color 0.2s ease; }
.form-group input:focus { outline: 2px solid var(--accent); outline-offset: -2px; border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-disabled); }
.login-error, .login-success { display: none; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-size: 13px; }
.login-error { background: var(--tint-error); border: 1px solid var(--tint-error-strong); color: var(--error); }
.login-success { background: var(--tint-success); border: 1px solid var(--tint-success-strong); color: var(--success); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--radius);
  cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 14px; transition: all 0.2s ease; min-height: 40px; padding: 0 16px; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { background: var(--accent-pressed); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-secondary); border-color: var(--accent); }
.btn-small { min-height: 32px; padding: 0 12px; font-size: 12px; }
.btn-full { width: 100%; }
.gesendet { text-align: center; padding: 20px 0; }
.gesendet .symbol { font-size: 40px; margin-bottom: 16px; }
.gesendet p { color: var(--text-secondary); margin: 0 0 8px 0; font-size: 14px; }
.gesendet .adresse { color: var(--accent); font-weight: 600; font-size: 16px; margin: 0 0 16px 0; word-break: break-all; }
.gesendet .hinweis { margin: 0 0 24px 0; }
.pruefung { text-align: center; padding: 20px 0; }
.pruefung p { color: var(--text-secondary); margin: 0; font-size: 14px; }
.pruefung .titel { color: var(--text-primary); font-weight: 600; font-size: 16px; margin: 0 0 8px 0; }
.spinner { width: 36px; height: 36px; margin: 0 auto 16px; border: 3px solid var(--tint-accent);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.theme-zeile { text-align: center; margin-top: 16px; }
