/* =============================================================
   Atrium — Auth (Login)
   Split-Screen: links Info-Panel mit schräger Trennung, rechts
   cleanes Formular. Nutzt Tokens aus tokens.css.
   Übernommen aus ReloCrate (siehe docs/ui-conventions.md).
   ============================================================= */

.auth-body { min-height: 100vh; background: var(--bg); color: var(--text); }
.auth-split { display: flex; min-height: 100vh; }

/* ---- Linkes Info-Panel ------------------------------------ */
.auth-aside {
  position: relative; flex: 0 0 38%; max-width: 560px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 80% at 20% 0%, #9D7BF5 0%, var(--accent) 45%, var(--accent-press) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 96px) 100%, 0 100%);
  padding-right: 96px;
}
.auth-aside__glow { position: absolute; inset: auto -20% -30% -10%; height: 60%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,0.35), transparent 70%); filter: blur(40px); opacity: 0.5; pointer-events: none; }
.auth-aside__inner { position: relative; z-index: 1; height: 100%; min-height: 100vh; display: flex; flex-direction: column;
  padding: clamp(32px, 4vw, 56px) clamp(32px, 3.5vw, 56px) clamp(28px, 3vw, 44px); }

.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand__mark { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 18px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28); }
.auth-brand__name { font-size: var(--fs-md); font-weight: 500; letter-spacing: 0.01em; font-family: var(--font-head); text-transform: uppercase; }
.auth-brand__name b { font-weight: 700; }

.auth-aside__body { margin-top: auto; padding-top: var(--space-12); }
.auth-aside__headline { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; margin-bottom: var(--space-5); }
.auth-aside__lead { font-size: var(--fs-md); line-height: 1.6; color: rgba(255,255,255,0.88); max-width: 40ch; }

.auth-points { list-style: none; margin-top: var(--space-10); padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.auth-points li { display: flex; align-items: center; gap: var(--space-4); font-size: var(--fs-base); }
.auth-points i { width: 34px; height: 34px; border-radius: var(--radius-xs); display: grid; place-items: center; font-size: 15px; flex-shrink: 0;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); }

.auth-aside__foot { margin-top: var(--space-10); font-size: var(--fs-xs); color: rgba(255,255,255,0.6); }

/* ---- Rechte Formular-Spalte ------------------------------- */
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--space-10) var(--pad-x); }
.auth-card { width: 100%; max-width: 400px; }

.auth-head { margin-bottom: var(--space-7); }
.auth-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; font-size: var(--fs-xl); color: var(--text-strong); margin-top: var(--space-2); }
.auth-sub { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; margin-top: var(--space-3); max-width: 44ch; }

.auth-form { display: flex; flex-direction: column; gap: var(--space-5); }
.auth-submit { width: 100%; height: 46px; margin-top: var(--space-2); }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }

.auth-remember { display: flex; align-items: center; gap: var(--space-3); margin-top: calc(var(--space-2) * -1);
  font-size: var(--fs-sm); color: var(--text-muted); cursor: pointer; user-select: none; }
.auth-remember input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }

.auth-alert { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-sm);
  font-size: var(--fs-sm); line-height: 1.5; margin-bottom: var(--space-5); }
.auth-alert i { margin-top: 1px; flex-shrink: 0; }
.auth-alert--error { background: var(--danger-soft); color: var(--danger); }
.auth-alert--info  { background: var(--accent-soft); color: var(--accent); }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 860px) {
  .auth-split { flex-direction: column; }
  .auth-aside { flex: none; max-width: none; width: 100%; clip-path: none; padding-right: 0; }
  .auth-aside__inner { min-height: 0; padding: var(--space-7) var(--pad-x) var(--space-8); }
  .auth-aside__body { padding-top: var(--space-7); }
  .auth-aside__headline { font-size: 1.7rem; }
  .auth-points { display: none; }
  .auth-aside__foot { display: none; }
  .auth-main { padding-top: var(--space-10); padding-bottom: var(--space-12); }
}
