/* auth.css — Standalone-Auth-Seiten (Forgot-Password, Reset-Password, Register, Verify) */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: var(--bg);
}

.auth-card {
  max-width: 400px;
  width: 100%;
  padding: var(--space-5);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auth-card h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  margin: 0 0 var(--space-2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.auth-form[hidden] { display: none; }

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.auth-form input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg-input, var(--bg));
  color: var(--text);
}

.auth-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.auth-consent-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
}
.auth-consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: auto;
  padding: 0;
}
.auth-consent-label span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.auth-consent-label a {
  color: var(--accent);
  text-decoration: underline;
}

.auth-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.auth-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-success {
  color: var(--success, #6f8b56);
  font-size: 13.5px;
}

.auth-error {
  color: var(--danger, #a3573b);
  font-size: 13.5px;
  margin: 0;
}

/* Login-Seite: Passwort-vergessen-Link */
.login-forgot {
  text-align: center;
  margin: var(--space-2) 0 0;
}

.login-forgot-link {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
}

.login-forgot-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ── V-01: Login-Editorial-Hero — 2-Spalten-Layout ────────────────── */

/* Override: login-page bekommt Grid-Layout wenn .login-page-grid */
.login-page.login-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding: 0;
  place-items: unset;
  align-items: stretch;
}

/* Hero-Spalte (links) */
.login-hero {
  background: linear-gradient(160deg, var(--accent, #4a7c59) 0%, color-mix(in srgb, var(--accent, #4a7c59) 60%, #1a2e20) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-10, 5rem) var(--space-8, 3rem);
  position: relative;
  overflow: hidden;
}
.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.login-hero-leaf {
  width: 48px;
  height: 48px;
  opacity: 0.9;
  margin-bottom: var(--space-5, 2rem);
  display: block;
}

.login-hero-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-4, 1.5rem);
  color: #fff;
}

.login-hero-tagline {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 var(--space-6, 2.5rem);
  max-width: 340px;
}

.login-hero-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.75rem);
}
.login-hero-feats li {
  font-size: 14px;
  opacity: 0.88;
  display: flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
}

/* Form-Spalte (rechts): zentrieren */
.login-page.login-page-grid .login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: var(--space-10, 5rem) var(--space-8, 3rem);
}

.login-page.login-page-grid .login-card > * {
  max-width: 400px;
  width: 100%;
}

.login-page.login-page-grid .login-card h2 {
  font-size: var(--fs-3xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.login-page.login-page-grid .login-card h2 .leaf {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

/* Mobile: 1-spaltig, Hero verkürzt */
@media (max-width: 767px) {
  .login-page.login-page-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .login-hero {
    padding: var(--space-6, 2.5rem) var(--space-5, 1.75rem);
    min-height: unset;
  }
  .login-hero-headline {
    font-size: 32px;
  }
  .login-hero-leaf {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-3, 1rem);
  }
  .login-hero-tagline,
  .login-hero-feats {
    display: none;
  }
  .login-page.login-page-grid .login-card {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: var(--space-6, 2.5rem) var(--space-5, 1.75rem);
    justify-content: flex-start;
  }
}
