/* === AUTH GLOBAL STYLES (gemeinsam für Login + Registrierungs-Wizard) === */
:root {
  --auth-bg: #f3f4f6;
  --auth-primary: #0D2A78;
  --auth-accent: #2563eb;
  --auth-text-main: #1f2937;
  --auth-text-muted: #6b7280;
  --auth-card-bg: #ffffff;
  --auth-border: #e5e7eb;
}

.auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at bottom left, #e0e7ff 0%, #f3f4f6 50%);
  padding: 40px 20px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.auth-container { width: 100%; max-width: 760px; }

.auth-card {
  background: var(--auth-card-bg);
  padding: 48px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* === FORTSCHRITTS-ANZEIGE === */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.auth-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-text-muted);
}
.auth-step-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5e7eb; color: #6b7280;
  font-size: 13px; font-weight: 700;
}
.auth-step.is-active .auth-step-dot { background: var(--auth-accent); color: #fff; }
.auth-step.is-done .auth-step-dot { background: #16a34a; color: #fff; }
.auth-step.is-active { color: var(--auth-primary); }
.auth-step-line { width: 18px; height: 2px; background: #e5e7eb; }
@media (max-width: 560px) {
  .auth-step-label { display: none; }
  .auth-step-line { width: 10px; }
}

/* === HEADER === */
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo img {
  width: 110px; height: 110px; object-fit: contain;
  display: block; margin: 0 auto 18px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(13, 42, 120, 0.14);
  transition: transform 0.3s ease;
}
.auth-logo:hover img { transform: scale(1.05); }
.auth-header h1 { font-size: 24px; font-weight: 800; color: var(--auth-primary); margin: 0 0 8px 0; }
.auth-header p { color: var(--auth-text-muted); font-size: 15px; margin: 0; }

/* === FORM === */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 14px; font-weight: 600; color: var(--auth-text-main); }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 14px; font-size: 16px; pointer-events: none; }
.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--auth-border);
  border-radius: 12px;
  font-size: 15px; color: #000; background-color: #fff;
  transition: all 0.2s ease;
}
.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: var(--auth-accent); outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.eye-toggle {
  position: absolute; right: 12px;
  background: none; border: none; cursor: pointer; padding: 4px; font-size: 16px; opacity: 0.5;
}
.input-hint { font-size: 12px; color: var(--auth-text-muted); margin: 2px 0 0; }

/* === 6-STELLIGER CODE === */
.code-input {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--auth-border);
  border-radius: 12px;
  font-size: 32px;
  letter-spacing: 14px;
  text-align: center;
  font-family: 'Inter', monospace;
  color: #000; background: #fff;
  transition: all 0.2s ease;
}
.code-input:focus {
  border-color: var(--auth-accent); outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* === CHECKBOX === */
.checkbox-group { margin-top: 5px; }
.custom-checkbox {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 14px; color: var(--auth-text-muted); line-height: 1.4;
}
.custom-checkbox input { width: 16px; height: 16px; margin: 0; cursor: pointer; flex: 0 0 auto; }
.custom-checkbox .label-text { margin: 0; }
.custom-checkbox a { color: var(--auth-accent); text-decoration: none; font-weight: 600; }

/* === PLAN-AUSWAHL === */
.plan-choice-group { gap: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-option { position: relative; display: block; cursor: pointer; font-weight: 400; color: inherit; }
/* Radio optisch versteckt, aber per Tastatur erreichbar. Feste 1px-Größe: die globale
   input-Regel (width: 100%) ließ die absolut positionierten Radios sonst über den
   Seitenrand ragen (horizontaler Scrollbalken). */
.plan-option input { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px !important; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.plan-option input:focus-visible + .plan-option-card { outline: 2px solid #4f46e5; outline-offset: 2px; }
.plan-option-card {
  border: 1.5px solid var(--auth-border); border-radius: 14px; padding: 12px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.plan-option:hover .plan-option-card { border-color: #c7d2fe; transform: translateY(-1px); }
.plan-option input:checked + .plan-option-card {
  border-color: var(--auth-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.plan-option-header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.plan-option-header strong { color: var(--auth-primary); font-size: 15px; }
.plan-option-price { color: var(--auth-text-main); font-size: 13px; font-weight: 600; }
.plan-option-features {
  margin: 0; padding-left: 18px; color: var(--auth-text-muted);
  font-size: 13px; display: grid; gap: 3px;
}
.enterprise-contact {
  margin-top: 8px; padding: 10px 12px; border: 1px solid #c7d2fe; border-radius: 12px;
  background: #eef2ff; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.enterprise-contact-text { font-size: 13px; color: #1e3a8a; font-weight: 600; }
.enterprise-contact-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: #fff; background: var(--auth-primary); font-size: 13px; font-weight: 700;
}
.enterprise-contact-btn:hover { background: #092160; }

/* === BUTTON === */
.auth-submit-btn {
  margin-top: 10px; padding: 14px;
  background: var(--auth-primary); color: white; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  transition: all 0.2s ease;
}
.auth-submit-btn:hover {
  background: #092160; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13, 42, 120, 0.2);
}
.auth-link-btn {
  background: none; border: none; color: var(--auth-accent);
  font-weight: 600; cursor: pointer; font-size: 14px; text-decoration: underline; padding: 0;
}

/* === ALERTS === */
.auth-alert {
  background: #fef2f2; border: 1px solid #fee2e2; color: #b91c1c;
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.auth-info {
  background: #ecfdf5; border: 1px solid #d1fae5; color: #047857;
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}

/* === FOOTER === */
.auth-footer { margin-top: 28px; text-align: center; }
.divider { position: relative; height: 1px; background: var(--auth-border); margin-bottom: 24px; }
.divider span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--auth-card-bg); padding: 0 12px; font-size: 13px; color: var(--auth-text-muted);
}
.login-link { color: var(--auth-accent); font-weight: 700; text-decoration: none; font-size: 15px; }

/* Autofill Fix */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
}

@media (max-width: 680px) {
  .auth-card { padding: 28px 18px; border-radius: 18px; }
  .plan-grid { grid-template-columns: 1fr; }
  .enterprise-contact { align-items: flex-start; }
}
