/* login.css — schlankes Stylesheet fuer die /login-Route (nacharbeiten 1 A1, 2026-07-08).
   Extrahiert aus der geloeschten css/app.css (nur Login- + Modal-Subset). Das
   Cool-Slate-Theme wird von login.php per Inline-<style> ueberschrieben (wie zuvor bei app.css);
   die :root-Defaults hier sind reine Fallback-Werte. */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #1a1a1a;
      --surface:   #222222;
      --surface2:  #2a2a2a;
      --border:    #333333;
      --accent:    #c0392b;
      --accent2:   #e74c3c;
      --text:      #f0f0f0;
      --text-muted:#888888;
      --radius:    6px;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
    }

    /* ── LOGIN ─────────────────────────────────────────────────────── */
    #login-screen {
      display: flex; align-items: center; justify-content: center;
      min-height: 100vh; background: var(--bg);
    }

    .login-box {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 48px 40px;
      width: 100%; max-width: 380px; text-align: center;
    }

    .login-box img { width: 140px; margin-bottom: 32px; }
    .login-box h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
    .login-box p  { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

    .login-field {
      width: 100%; padding: 13px 16px;
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: var(--radius); color: var(--text);
      font-size: 0.95rem; margin-bottom: 12px; outline: none;
      font-family: inherit; transition: border-color 0.2s;
    }
    .login-field:focus { border-color: var(--accent); }
    .login-field::placeholder { color: var(--text-muted); }

    .btn-login {
      width: 100%; padding: 13px; background: var(--accent);
      color: #fff; border: none; border-radius: var(--radius);
      font-size: 0.95rem; font-weight: 600; cursor: pointer;
      transition: background 0.2s; margin-top: 4px; font-family: inherit;
    }
    .btn-login:hover { background: var(--accent2); }
    .btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

    .login-error {
      color: var(--accent2); font-size: 0.85rem;
      margin-top: 12px; display: none;
    }

    /* ── MODAL ─────────────────────────────────────────────────────── */
    .modal-overlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,0.7); z-index: 1000;
      align-items: center; justify-content: center;
    }
    .modal-overlay.open { display: flex; }

    .modal {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 8px; padding: 32px;
      width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
    }

    .modal h3 {
      font-size: 1.1rem; font-weight: 700; margin-bottom: 20px;
      display: flex; align-items: center; gap: 8px;
    }
    .modal h3::before {
      content: ''; display: inline-block;
      width: 3px; height: 18px;
      background: var(--accent); border-radius: 2px;
    }

    .modal-field {
      width: 100%; padding: 11px 14px;
      background: var(--surface2); border: 1px solid var(--border);
      border-radius: var(--radius); color: var(--text);
      font-size: 0.9rem; margin-bottom: 10px; outline: none;
      font-family: inherit; transition: border-color 0.2s;
    }
    .modal-field:focus { border-color: var(--accent); }
    .modal-field::placeholder { color: var(--text-muted); }

    .modal-actions { display: flex; gap: 10px; margin-top: 16px; }

    .modal-msg { font-size: 0.85rem; margin-top: 10px; display: none; }
    .modal-msg.success { color: #2ecc71; display: block; }
    .modal-msg.error   { color: var(--accent2); display: block; }

    /* ── BUTTONS (Modal-Aktionen) ──────────────────────────────────── */
    .btn {
      padding: 10px 20px; border: none; border-radius: var(--radius);
      font-size: 0.9rem; font-weight: 600; cursor: pointer;
      transition: background 0.2s; white-space: nowrap; font-family: inherit;
    }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover { background: var(--accent2); }
    .btn-ghost {
      background: var(--surface2); color: var(--text-muted);
      border: 1px solid var(--border);
    }
    .btn-ghost:hover { background: var(--border); color: var(--text); }
    .btn-danger { background: rgba(192,57,43,0.2); color: #e88; }
    .btn-danger:hover { background: var(--accent); color: #fff; }

    /* ── Responsive (Konv #40) ─────────────────────────────────────── */
    @media (max-width: 640px) {
      .login-box { padding: 36px 22px; max-width: 100%; }
      .modal { padding: 24px 18px; }
    }
