/* Login-/Registrierungs-Oberflaeche. Nutzt die Design-Tokens aus site.css (:root). */

.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bp-surface);
  color: var(--bp-text);
  font-family: var(--bp-font);
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Linke Markenseite */
.auth-brandside {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf0fb 0%, #dfe9fb 100%);
  padding: 56px 64px;
  display: flex;
  align-items: center;
}

.auth-brandside::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: radial-gradient(120% 80% at 50% 100%, #cad9f6 0%, transparent 60%);
  pointer-events: none;
}

.auth-brandside-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.auth-brand-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 44px;
}

.auth-hero {
  font-size: 2.6rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
  color: var(--bp-text);
}

.auth-hero-accent {
  color: var(--bp-primary);
}

.auth-hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bp-muted);
  margin: 0 0 36px;
  max-width: 420px;
}

/* Dashboard-Vorschau (rein dekorativ) */
.auth-preview {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: 14px;
  box-shadow: var(--bp-shadow);
  padding: 18px;
  width: 100%;
}

.auth-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.auth-preview-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #2f7bef, #7db4fb);
}

.auth-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-preview-card {
  background: var(--bp-surface-muted);
  border: 1px solid var(--bp-border);
  border-radius: 10px;
  padding: 12px;
}

.auth-preview-card small {
  color: var(--bp-muted);
  font-size: 0.72rem;
}

.auth-preview-value {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 3px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.auth-up { color: var(--bp-green); font-size: 0.72rem; font-weight: 600; }
.auth-down { color: var(--bp-danger); font-size: 0.72rem; font-weight: 600; }

.auth-spark {
  margin-top: 10px;
  height: 34px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent, transparent),
    repeating-linear-gradient(60deg, var(--bp-primary-soft) 0 6px, transparent 6px 12px);
  position: relative;
}
.auth-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 2px solid var(--bp-primary);
  clip-path: polygon(0 80%, 15% 60%, 30% 70%, 45% 40%, 60% 55%, 75% 25%, 100% 35%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, var(--bp-primary-soft), transparent);
}
.auth-spark-lg { height: 54px; }

.auth-preview-card-accent {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bp-surface);
  box-shadow: var(--bp-shadow);
}

.auth-donut {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(var(--bp-primary) 0 62%, var(--bp-primary-soft) 62% 100%);
  position: relative;
  flex: none;
}
.auth-donut::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--bp-surface);
}

/* Rechte Formularseite */
.auth-formside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 64px;
  position: relative;
}

.auth-formside-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.auth-topbar {
  position: absolute;
  top: 28px;
  right: 64px;
  font-size: 0.9rem;
  color: var(--bp-muted);
}
.auth-topbar a {
  color: var(--bp-primary);
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
}
.auth-topbar a:hover { text-decoration: underline; }

.auth-card { width: 100%; }

.auth-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--bp-muted);
  margin: 0 0 28px;
}

.auth-form { display: block; }

.auth-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 18px 0 8px;
}

.auth-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--bp-border-strong);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  padding: 0 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field:focus-within {
  border-color: var(--bp-primary);
  box-shadow: 0 0 0 3px var(--bp-primary-soft);
}

.auth-field-icon {
  width: 20px;
  height: 20px;
  color: var(--bp-muted);
  flex: none;
}

.auth-field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 13px 10px;
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--bp-text);
  min-width: 0;
}

.auth-reveal {
  border: none;
  background: transparent;
  color: var(--bp-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
}
.auth-reveal svg { width: 20px; height: 20px; }
.auth-reveal:hover { color: var(--bp-text); }

.auth-row-right {
  text-align: right;
  margin: 12px 0 0;
}
.auth-link {
  color: var(--bp-primary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  border: none;
  border-radius: var(--bp-radius);
  background: var(--bp-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-submit:hover { background: #1259c4; }
.auth-submit:focus-visible { outline: 3px solid var(--bp-primary-soft); outline-offset: 2px; }

.auth-hint {
  font-size: 0.8rem;
  color: var(--bp-muted);
  margin: 8px 0 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--bp-muted);
  font-size: 0.85rem;
  margin: 26px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bp-border);
}
.auth-divider span { padding: 0 16px; }

.auth-sso { display: grid; gap: 12px; }

.auth-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--bp-border-strong);
  border-radius: var(--bp-radius);
  background: var(--bp-surface);
  color: var(--bp-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.auth-sso-btn:hover { background: var(--bp-surface-muted); border-color: var(--bp-muted); }

.auth-sso-mark {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-weight: 700;
}
.auth-mark-google {
  color: #4285f4;
  font-family: Arial, sans-serif;
}
.auth-mark-apple svg { width: 18px; height: 18px; }
.auth-mark-ms {
  display: grid;
  grid-template-columns: 9px 9px;
  grid-template-rows: 9px 9px;
  gap: 2px;
}
.auth-mark-ms i { display: block; width: 9px; height: 9px; }
.auth-mark-ms i:nth-child(1) { background: #f25022; }
.auth-mark-ms i:nth-child(2) { background: #7fba00; }
.auth-mark-ms i:nth-child(3) { background: #00a4ef; }
.auth-mark-ms i:nth-child(4) { background: #ffb900; }

.auth-alert {
  background: #fdecec;
  border: 1px solid #f2c4c4;
  color: #a12727;
  border-radius: var(--bp-radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.auth-notice {
  background: var(--bp-green-soft);
  border: 1px solid #bce6d5;
  color: #0b7350;
  border-radius: var(--bp-radius);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--bp-muted);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.auth-footer-links a {
  color: var(--bp-muted);
  text-decoration: none;
  margin-left: 22px;
}
.auth-footer-links a:hover { color: var(--bp-text); }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brandside { display: none; }
  .auth-formside { padding: 72px 24px 32px; }
  .auth-topbar { right: 24px; }
  .auth-footer { flex-direction: column; gap: 10px; text-align: center; }
  .auth-footer-links a { margin: 0 11px; }
}
