    * { box-sizing: border-box; }
    
    html, body {
      margin: 0; padding: 0; width: 100%; height: 100%;
      overflow: hidden;
      overscroll-behavior: none; background: #0f172a;
      -webkit-font-smoothing: antialiased;
    }

    .login-page {
      width: 100%;
      min-height: 100dvh; 
      overflow-y: auto;
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      padding: 1.5rem; 
      position: relative;
    }

    .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;
    }

    .login-card {
      max-width: 420px;
      width: 100%;
      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; } }

    .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; }

    .passkey-btn.btn-success {
      background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    }
    .passkey-btn.btn-success:hover {
      box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    }

    .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; }

    .cancel-btn {
      display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.8rem;
      color: rgba(255, 255, 255, 0.5); text-decoration: none; background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; transition: all 0.2s;
      cursor: pointer;
    }
    .cancel-btn:hover { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.2); }

    .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; }

    /* Form Styles */
    .form-label {
      color: rgba(255, 255, 255, 0.8);
      font-size: 0.875rem;
      font-weight: 500;
      margin-bottom: 0.5rem;
    }
    .form-control {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 10px;
      color: #fff;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      transition: all 0.2s;
    }
    .form-control:focus {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(229, 0, 89, 0.5);
      box-shadow: 0 0 0 3px rgba(229, 0, 89, 0.15);
      outline: none;
      color: #fff;
    }
    .form-control::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }
    .form-text {
      color: rgba(255, 255, 255, 0.5);
      font-size: 0.8rem;
      margin-top: 0.5rem;
    }

    .form-control.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
    }

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

    /* Secure Card */
.secure-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.secure-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.secure-card-header > i {
  font-size: 1.5rem;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.secure-card-title {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.secure-card-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  line-height: 1.4;
}

.secure-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.secure-btn {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.secure-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.6);
}

.secure-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.secure-btn i {
  font-size: 1.1rem;
}

/* Row nur fürs Input (Button ist weg) */
.secure-pin-row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
}

/* Input hübsch & zentriert */
.secure-pin-row .form-control{
  width: 100%;
  max-width: 320px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 0.85rem 1rem;

  /* optional: dark-friendly */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}

.secure-pin-row .form-control::placeholder{
  color: rgba(255,255,255,0.45);
}

/* Focus schöner */
.secure-pin-row .form-control:focus{
  border-color: rgba(96,165,250,0.75);
  box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.25);
  outline: none;
}

/* Mobile: ein bisschen kleiner */
@media (max-width: 420px){
  .secure-pin-row .form-control{
    max-width: 100%;
    font-size: 1.15rem;
    letter-spacing: 0.2em;
  }
}

/* garantiert versteckt */
.secure-pin-row[hidden]{
  display: none !important;
}

.secure-pin-row.show {
  display: flex;
}

.secure-btn-confirm {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.secure-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.secure-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.secure-hint {
  min-height: 1.125rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.secure-hint.success {
  color: #4ade80;
}

.secure-hint.error {
  color: #f87171;
}
.secure-hint.info {
  color: rgba(255, 255, 255, 0.7);
}
.secure-hint {
  min-height: 1.125rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.secure-hint.success {
  color: #4ade80;
}

.secure-hint.error {
  color: #f87171;
}