/* ============================================================
   LifeFolder — Auth (Split-Panel: Marken-Seite + Formular)
   ============================================================ */
.auth-body { background: var(--color-bg); }
.auth { display: flex; min-height: 100vh; }

/* Marken-Panel (grün ist hier korrekt: Markenfläche) */
.auth__brand {
  width: 42%; max-width: 560px;
  background: linear-gradient(160deg, var(--brand-green), var(--brand-green-deep));
  color: #fff; display: flex; align-items: center; padding: 48px;
}
.auth__brand-inner { max-width: 380px; }
.auth__logo { display: inline-flex; }
.auth__word { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin-top: 16px; }
.auth__word .brand__a { color: #fff; }
.auth__word-b { color: #B6DACB; }
.auth__tagline { font-size: 30px; font-weight: 800; line-height: 1.15; margin-top: 28px; }
.auth__brand-sub { margin-top: 14px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .85); }

/* Formular-Seite */
.auth__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__card { width: 100%; max-width: 420px; }
.auth__title { font-size: 26px; font-weight: 800; }
.auth__lead { margin: 8px 0 22px; color: var(--color-muted); }

.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--color-ink); }
.field__input {
  height: 46px; border: 1px solid var(--color-line); border-radius: var(--radius-control);
  background: var(--color-surface); color: var(--color-ink); padding: 0 14px;
  font-size: 15px; font-family: inherit; outline: none;
  /* Rails leitet aus maxlength ein size-Attribut ab → große intrinsische
     Mindestbreite, die Grids/Karten sprengt. Layout entscheidet, nicht size. */
  min-width: 0;
}
.field__input:focus { border-color: var(--color-selected); box-shadow: 0 0 0 3px var(--color-selected-soft); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
/* Mobil: nebeneinanderliegende Felder stapeln (Settings-Passwörter, Datums-Paare) —
   sonst drücken die Input-Mindestbreiten die Felder aus der Karte. */
@media (max-width: 600px) {
  .field-row { flex-direction: column; }
}

.btn--block { width: 100%; height: 48px; margin-top: 6px; }

.auth__row { display: flex; justify-content: space-between; align-items: center; }
.auth__link { color: var(--color-selected); font-weight: 600; }
.auth__link:hover { text-decoration: underline; }
.auth__switch { margin-top: 20px; text-align: center; color: var(--color-muted); font-size: 14px; }

.auth__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--color-muted-2); font-size: 12.5px; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }

.oauth { display: flex; flex-direction: column; gap: 10px; }
.oauth form { margin: 0; }

/* Gast-Login: button_to erzeugt ein <form> — voll breit + ohne Rand-Margin,
   damit der Button (Login-Panel wie Landing-CTA) die volle Breite füllt. */
.guest-cta__form { width: 100%; margin: 0; }
.oauth-btn {
  width: 100%; height: 46px; border: 1px solid var(--color-line); border-radius: var(--radius-control);
  background: var(--color-surface); color: var(--color-ink); font-size: 14.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.oauth-btn:hover { background: var(--color-line-soft); }

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.flash--alert { background: var(--status-urgent-bg); color: var(--status-urgent-fg); }
.flash--notice { background: var(--color-status-bg); color: var(--color-status-fg); }

@media (max-width: 820px) {
  .auth { flex-direction: column; }
  .auth__brand { width: 100%; max-width: none; padding: 32px; }
  .auth__tagline { font-size: 24px; }
}

/* „Angemeldet bleiben" neben dem Passwort-vergessen-Link */
.auth__remember { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted); cursor: pointer; }

/* Early-Access-Gate: Invite-Request + dezenter Code-Zugang */
.gate-reassure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--color-muted-2); margin: 14px 0 0; }
.gate-code { margin-top: 22px; border-top: 1px solid var(--color-line); padding-top: 14px; }
.gate-code summary { font-size: 13.5px; color: var(--color-muted); cursor: pointer; }
.gate-code .auth-form { margin-top: 12px; }
.gate-success { text-align: center; }
.gate-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--status-valid-bg); color: var(--status-valid-fg); margin-bottom: 12px; }
.auth__consent { font-size: 12.5px; color: var(--color-muted-2); text-align: center; margin: 10px 0 0; }
.auth__consent a { color: var(--color-muted); text-decoration: underline; }
.auth__brand-footer a { color: inherit; }

/* Google-G im OAuth-Button */
.oauth-btn__icon { flex: none; }

/* Legal-Links unten links im Brand-Panel (nicht mitten im Inhalt) */
.auth__brand { position: relative; }
.auth__brand-footer { position: absolute; left: 48px; bottom: 26px; font-size: 12.5px; opacity: .75; }
@media (max-width: 900px) { .auth__brand-footer { left: 32px; bottom: 18px; } }
