/* ── Auth / Login ───────────────────────────────────────────────── */
#view-login {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8vh;
  min-height: 100vh;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232,145,10,0.07) 0%, transparent 70%);
}

@media (max-width: 768px) {
  #view-login {
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 100svh;
  }
  .auth-card {
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius);
  }
}

@media (max-width: 420px) {
  #view-login  { padding: 1.5rem 0; }
  .auth-card   { padding: 2rem 1.25rem; border-radius: var(--radius-sm); }
  .auth-logo   { width: 64px; height: 64px; }
  .auth-card h1 { font-size: 1.5rem; }
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 3rem 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow), 0 0 60px rgba(232, 145, 10, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 0 16px rgba(232, 145, 10, 0.3));
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.auth-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── Checkbox (AGB) ─────────────────────────────────────── */
.field-checkbox {
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: left;
}

.checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-label a:hover {
  opacity: 0.8;
}

/* ── Passwort-Toggle ─────────────────────────────────────── */
.field-pw {
  position: relative;
  display: flex;
  align-items: center;
}

.field-pw input {
  flex: 1;
  padding-right: 2.75rem;
}

.pw-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  line-height: 1;
}

.pw-toggle:hover {
  color: var(--text);
}

.pw-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ── Switch-Link (Noch kein Konto? / Schon ein Konto?) ───── */
.auth-switch {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.btn-link-accent {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-link-accent:hover {
  color: var(--accent);
  opacity: 0.8;
}

/* ── Resend-Box ───────────────────────────────────────────── */
.resend-box {
  background: rgba(232, 145, 10, 0.07);
  border: 1px solid rgba(232, 145, 10, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.resend-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.resend-box input[type="email"] {
  width: 100%;
  margin-bottom: 0.6rem;
  box-sizing: border-box;
  /* Gleiche Styles wie globale Inputs */
  background: var(--bg-input, #1a1a1a);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: var(--radius-sm, 6px);
  color: var(--text);
  padding: 0.6rem 0.875rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.resend-box input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Verify-Pending ───────────────────────────────────────── */
.verify-pending {
  text-align: center;
  padding: 0.5rem 0;
}

.verify-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.verify-pending h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.verify-pending p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Passwort vergessen Link ─────────────────────────────── */
.auth-forgot {
  text-align: right;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.btn-link:hover {
  color: var(--accent);
}

/* ── Hilfsmeldungen ───────────────────────────────────────── */
.success-msg {
  color: #4ade80;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.required {
  color: var(--accent);
  font-size: 0.8em;
}

