/* ================== BASIS / FARBEN ================== */
:root {
    --bg: #020617;
    --panel: #0f172a;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
  }
  
  body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  /* ================== HEADER ================== */
  .site-header {
    background: #020617;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding: 8px 0;
  }
  
  .header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .header-inner .logo img {
    height: 80px;
    display: block;
  }
  
  /* Navigation mittig */
  .main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
  }
  
  .main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
  }
  
  .main-nav a:hover {
    background: var(--accent);
    color: var(--bg);
  }
  
  /* Login Button rechts */
  .auth .login-btn {
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.18s ease, color 0.18s ease, border 0.18s ease;
  }
  
  .auth .login-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: transparent;
  }
  
  /* ================== LOGIN CARD ================== */
  main {
    flex: 1;
  }
  
  .login-wrapper {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
  }
  
  .login-card {
    background: var(--panel);
    border-radius: 14px;
    padding: 28px 24px 26px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
  }
  
  .login-card h2 {
    margin: 0 0 18px;
    text-align: center;
    font-size: 1.6rem;
  }
  
  /* Formular */
  .form-row {
    margin-bottom: 14px;
  }
  
  label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
  }
  
  input[type="text"],
  input[type="password"],
  input[type="email"] {
    width: 100%;
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.85);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  }
  
  input::placeholder {
    color: rgba(148, 163, 184, 0.8);
  }
  
  input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
    background: rgba(15, 23, 42, 1);
  }
  
  /* Aktionen unter dem Formular */
  .login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
  }
  
  .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
  }
  
  /* Button */
  .btn-primary {
    border: none;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }
  
  .btn-primary:hover {
    background: #0ea5e9;
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
  }
  
  /* Footer des Formulars */
  .login-footer {
    margin-top: 18px;
    text-align: center;
  }
  
  .login-footer .small {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
  }
  
  .login-footer .small:hover {
    text-decoration: underline;
  }
  
  /* ===================== MODAL ===================== */
  .modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    padding: 20px;
  }
  
  .modal-content {
    background: #0f172a;
    color: #f8fafc;
    width: min(480px, 90%);
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.06);
    animation: modal-zoom 0.4s ease;
    position: relative;
  }
  
  .close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  .close:hover {
    color: var(--accent);
  }
  
  @keyframes modal-zoom {
    from {
      opacity: 0;
      transform: scale(0.85);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* ================== FOOTER ================== */
  .site-footer {
    background: #020617;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
  }
  
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
  }
  
  .footer-links {
    display: flex;
    gap: 18px;
  }
  
  .footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  
  /* ================== RESPONSIVE ================== */
  @media (max-width: 768px) {
    .header-inner {
      flex-direction: column;
      gap: 8px;
    }
  
    .main-nav {
      position: static;
      transform: none;
      justify-content: center;
      flex-wrap: wrap;
    }
  
    .auth {
      align-self: flex-end;
    }
  }
  
  @media (max-width: 480px) {
    .login-actions {
      flex-direction: column-reverse;
      align-items: stretch;
    }
  
    .btn-primary {
      width: 100%;
    }
  }
  