/* ============================================================
 * auth-modal.css — Shared Auth-Modal Styles (Sub-Pages)
 * ============================================================
 * Identische Optik wie Inline-Modal in index.html, aber als
 * zentrale Stylesheet damit alle Public-Pages das Modal nutzen
 * können.
 *
 * Token-Quelle: assets/videte.css (--vd-teal etc.). Falls
 * videte.css noch nicht geladen ist, fallback-Hex-Werte sind
 * inline gesetzt damit Modal nie ohne Style auftaucht.
 * ============================================================ */

.vlm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: vlmFade 0.2s ease;
}
.vlm-overlay[hidden] { display: none !important; }
.vlm-overlay.is-open { display: flex; }

@keyframes vlmFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.vlm-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: vlmSlide 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes vlmSlide {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.vlm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.vlm-close:hover { background: #F1F5F9; color: #0A1628; }
.vlm-close:focus-visible {
  outline: 2px solid var(--vd-teal, #0FA38F);
  outline-offset: 2px;
}

.vlm-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0A1628;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.vlm-card .vlm-sub {
  font-size: 14px;
  color: #64748B;
  margin: 0 0 20px;
}

.vlm-tabs {
  display: flex;
  gap: 4px;
  background: #F1F5F9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.vlm-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
}
.vlm-tab.is-active {
  background: #fff;
  color: #0A1628;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.vlm-tab:focus-visible {
  outline: 2px solid var(--vd-teal, #0FA38F);
  outline-offset: 2px;
}

.vlm-pane { display: none; }
.vlm-pane.is-active { display: block; }

.vlm-form label {
  display: block;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  margin-bottom: 6px;
}
.vlm-form input,
.vlm-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 14px;
  background: #fff;
  color: #0A1628;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vlm-form input:focus,
.vlm-form select:focus {
  outline: none;
  border-color: var(--vd-teal, #0FA38F);
  box-shadow: 0 0 0 3px rgba(15, 163, 143, 0.15);
}

.vlm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 420px) {
  .vlm-row { grid-template-columns: 1fr; }
}

.vlm-hint {
  color: #94A3B8;
  font-weight: 400;
}

.vlm-btn {
  width: 100%;
  padding: 13px;
  background: var(--vd-teal, #0FA38F);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.vlm-btn:hover:not(:disabled) { background: #0B8576; }
.vlm-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.vlm-btn:focus-visible {
  outline: 2px solid #0B8576;
  outline-offset: 2px;
}

.vlm-status {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}
.vlm-status.ok  { display: block; background: rgba(16, 185, 129, 0.10); color: #065F46; }
.vlm-status.err { display: block; background: rgba(220, 38, 38, 0.10); color: #7F1D1D; }

.vlm-foot {
  font-size: 13px;
  color: #64748B;
  text-align: center;
  margin: 16px 0 0;
}
.vlm-foot a,
.vlm-link-btn {
  color: var(--vd-teal, #0B8576);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vlm-link-faint {
  font-weight: 400 !important;
  color: #64748B !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vlm-link-btn:hover,
.vlm-foot a:hover { color: #0B8576; }
.vlm-link-btn:focus-visible,
.vlm-foot a:focus-visible {
  outline: 2px solid var(--vd-teal, #0FA38F);
  outline-offset: 2px;
  border-radius: 2px;
}

.vlm-checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #F8FAFC;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: #475569;
  cursor: pointer;
  line-height: 1.45;
}
.vlm-checkbox input { margin-top: 2px; flex-shrink: 0; }
.vlm-checkbox a { color: var(--vd-teal, #0B8576); }

/* Reduced-Motion: Animationen deaktivieren */
@media (prefers-reduced-motion: reduce) {
  .vlm-overlay,
  .vlm-card { animation: none; }
}
