:root {
  --bg0: #050914;
  --bg1: #070d1c;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.52);
  --blue: #2f7bff;
  --blue2: #0ea5ff;
  --danger: #ff4d6d;
  --ok: #22c55e;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(47, 123, 255, 0.22), transparent 55%),
    radial-gradient(700px 420px at 85% 25%, rgba(14, 165, 255, 0.18), transparent 58%),
    radial-gradient(800px 520px at 50% 95%, rgba(47, 123, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  padding: 48px 18px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
}

.loginGrid {
  display: grid;
  grid-template-columns: 520px 480px;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

.card {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.header {
  margin-bottom: 28px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 40%),
    linear-gradient(135deg, rgba(47,123,255,0.95), rgba(14,165,255,0.85));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 24px rgba(47, 123, 255, 0.22);
  background-size: cover;
  background-position: center;
}

/* Sobald du dein Logo hast, füge diese Zeile hinzu:
.logo {
  background-image: url('assets/logo.png');
}
*/

.titles { min-width: 0; }
.brand {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.title {
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.subtitle {
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.6;
}

.form { 
  margin-top: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.field { display: grid; gap: 8px; margin: 0 0 20px 0; }
.label { color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500; }
.fieldHint { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-top: -4px; }

#twoFactorField {
  padding: 24px;
  background: rgba(47, 123, 255, 0.08);
  border: 1px solid rgba(47, 123, 255, 0.2);
  border-radius: 12px;
  animation: slideDown 0.3s ease-out;
}

#twoFactorCode {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 12px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(47, 123, 255, 0.4);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Courier New', monospace;
  transition: all 0.2s;
}

#twoFactorCode:focus {
  border-color: var(--blue);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.15);
}

#twoFactorCode::placeholder {
  letter-spacing: 8px;
  opacity: 0.4;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkboxField {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 20px 0;
  cursor: pointer;
}

.checkboxField input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkboxField input[type="checkbox"]:hover {
  border-color: rgba(255,255,255,0.3);
}

.checkboxField input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: #3b82f6;
}

.checkboxField input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.checkboxLabel {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  user-select: none;
  cursor: pointer;
  transition: color 0.2s;
}

.checkboxField:hover .checkboxLabel {
  color: rgba(255,255,255,0.85);
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: #ffffff;
  outline: none;
  font-size: 14px;
  transition: all 0.2s;
}

input::placeholder { color: rgba(255,255,255,0.3); }

input:focus {
  border-color: #3b82f6;
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  margin-top: 8px;
}

.btn:hover { 
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}
.btn:active { transform: translateY(0px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: rgba(255,255,255,1);
  display: none;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.message {
  margin-top: 16px;
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
}

.message.error { color: rgba(255, 77, 109, 0.95); }
.message.ok { color: rgba(34, 197, 94, 0.95); }

.footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  color: rgba(255,255,255,0.50);
  font-size: 12px;
}

/* Why Box - Dashboard Features */
.whyBox {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px 28px;
  backdrop-filter: blur(20px);
}

.whyHeader {
  margin-bottom: 8px;
}

.whyIcon {
  font-size: 32px;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.whyTitle {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.whyIntro {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  line-height: 1.6;
}

.whyList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.whyItem {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.checkmark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.whyItem strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.whyItem p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.whyFooter {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.whyFooter p {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.whyLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
}

.whyLink:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
}

/* Responsive */
@media (max-width: 1120px) {
  .loginGrid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  
  .whyBox {
    order: -1;
    max-width: 520px;
  }
}


.sep { opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .btn, .spinner { transition: none; animation: none; }
}
