/* ============================================================
   Login / Auth-Gate (Supabase) – im CI
   ============================================================ */
.auth-gate {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--color-background-tertiary);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-gate[hidden] { display: none; }
.auth-card {
  background: var(--color-background-primary);
  border: 0.5px solid var(--color-border-tertiary); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(31,29,26,.18);
  padding: 32px; width: 360px; max-width: 100%; text-align: center;
}
.auth-logo { height: 52px; width: auto; margin-bottom: 16px; }
.auth-title { font-size: 18px; font-weight: 700; color: var(--brown); }
.auth-sub { font-size: 13px; color: var(--color-text-secondary); margin: 4px 0 20px; }
.auth-card form { text-align: left; }
.auth-card label { display: block; font-size: 11px; font-weight: 600; color: var(--color-text-secondary); margin: 12px 0 4px; }
.auth-card input { width: 100%; font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 0.5px solid var(--color-border-secondary); background: var(--color-background-primary); color: var(--color-text-primary); font-family: var(--font-sans); }
.auth-card input:focus { outline: none; border-color: var(--green); }
.auth-err { font-size: 12px; color: #C0392B; background: #FDEDEC; border-radius: 8px; padding: 9px 11px; margin-top: 14px; line-height: 1.4; }
.auth-btn { width: 100%; margin-top: 18px; padding: 11px; border-radius: 10px; border: none; background: var(--green-strong); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-sans); }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-hint { font-size: 11px; color: var(--color-text-tertiary); margin-top: 16px; line-height: 1.5; }
.auth-spinner { width: 28px; height: 28px; border: 3px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; margin: 18px auto 0; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Abmelden-Eintrag in der Leiste */
.rail-item.account .ti-logout { margin-left: auto; font-size: 16px; }
