    * { box-sizing: border-box; }
    
    /* 1. Das Fenster einfrieren */
    html, body {
      margin: 0; padding: 0; width: 100%; height: 100%;
      overflow: hidden; /* Kein Scrollen am Body */
      overscroll-behavior: none; background: #0f172a;
      -webkit-font-smoothing: antialiased;
    }

    /* 2. Der Scroll-Container */
    .login-page {
      width: 100%;
      /* WICHTIG: min-height: 100dvh garantiert volle Höhe auf Mobile für korrekte Zentrierung */
      min-height: 100dvh; 
      
      overflow-y: auto;   /* Scrollen nur hier erlauben wenn nötig */
      overflow-x: hidden;
      
      display: flex;
      flex-direction: column;
      /* padding sorgt für Abstand zum Rand auf kleinen Screens */
      padding: 1.5rem; 
      
      position: relative;
    }

    /* Hintergrund (fixiert) */
    .login-page::before {
      content: ''; position: fixed; width: 600px; height: 600px;
      background: radial-gradient(circle, #e50059 0%, transparent 70%);
      top: -200px; right: -200px; opacity: 0.3; pointer-events: none; z-index: 0;
    }
    .login-page::after {
      content: ''; position: fixed; width: 500px; height: 500px;
      background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
      bottom: -150px; left: -150px; opacity: 0.3; pointer-events: none; z-index: 0;
    }

    /* 3. Die Karte (wird durch margin: auto zentriert) */
    .login-card {
      max-width: 420px;
      width: 100%;
      
      /* Das zentriert die Karte vertikal und horizontal im Flex-Container.
         Es ist "sicher", d.h. wenn der Bildschirm zu klein ist, wird oben nichts abgeschnitten. */
      margin: auto; 
      
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px;
      padding: 2.5rem 2rem; position: relative; z-index: 1;
    }

    @media (min-width: 576px) { .login-card { padding: 3rem 2.5rem; } }

    /* --- Restliche Styles --- */
    .logo-area { text-align: center; margin-bottom: 2rem; }
    .logo-area img { height: 44px; filter: brightness(0) invert(1); }
    .login-title { font-size: 1.75rem; font-weight: 700; color: #fff; text-align: center; margin: 0 0 0.5rem 0; }
    .login-subtitle { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); text-align: center; margin: 0 0 2rem 0; }

    .passkey-btn {
      width: 100%; padding: 1rem 1.5rem; font-size: 1rem; font-weight: 600; border: none; border-radius: 12px;
      background: linear-gradient(135deg, #e50059 0%, #ff3d7f 100%); color: #fff; cursor: pointer;
      transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
      position: relative; overflow: hidden; touch-action: manipulation;
    }
    .passkey-btn::before {
      content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s;
    }
    .passkey-btn:hover::before { left: 100%; }
    .passkey-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(229, 0, 89, 0.4); }
    .passkey-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .passkey-btn i { font-size: 1.25rem; }

    .auth-methods { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; padding: 1rem 0; }
    .auth-method { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
    .auth-method-icon {
      width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 10px;
      display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.8); font-size: 1.1rem;
    }
    .auth-method-label { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.05em; }

    .divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); margin: 1.5rem 0; }
    .links-section { text-align: center; }
    .help-btn {
      display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.7); text-decoration: none; background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; transition: all 0.2s;
    }
    .help-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
    .register-link { margin-top: 1.25rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }
    .register-link a { color: #ff3d7f; text-decoration: none; font-weight: 500; }
    .register-link a:hover { text-decoration: underline; }

    .alert { padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.85rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
    .alert-success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
    .alert-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
    .alert-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
    .d-none { display: none !important; }

    .login-page { min-height: 100vh; }
    @supports (min-height: 100dvh) { .login-page { min-height: 100dvh; } }

    #passkey-error {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    width: 100%;
}