/* ==========================================================================
   KERTU ACADEMY — Anmeldeseite
   Zweigeteilt: links die Marke (offizielles Logo), rechts die Anmeldung
   mit Umschalter Teilnehmer / Trainer.
   ========================================================================== */
body.is-auth { background: var(--ink); }
body.is-auth main { padding: 0; min-height: 100vh; }
body.is-auth .foot { display: none; }

.auth { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 100vh; }

/* ---- Markenseite -------------------------------------------------------- */
.auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; padding: 54px 56px; color: #fff;
  background: var(--ink-grad);
}
/* ruhig fließender Goldschimmer */
.auth-brand::before {
  content: ""; position: absolute; width: 820px; height: 820px; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(193, 168, 120, .30) 0%, rgba(193, 168, 120, .10) 38%, transparent 68%);
  animation: auth-float 18s ease-in-out infinite;
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 110%, rgba(255, 255, 255, .06), transparent 60%);
}
@keyframes auth-float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-46%, -54%) scale(1.09); }
}
@media (prefers-reduced-motion: reduce) { .auth-brand::before { animation: none; } }

.auth-brand-inner { position: relative; margin: auto 0; max-width: 460px; }
.auth-logo { display: block; width: min(330px, 78%); height: auto; margin-bottom: 44px; }
.auth-kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.auth-brand h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 0; }
.auth-rule { width: 64px; height: 3px; border-radius: 2px; background: var(--gold-grad); margin: 22px 0; }
.auth-tag { color: #cbc8bf; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.auth-motto { color: rgba(255, 255, 255, .45); font-size: 13px; letter-spacing: .1em; margin: 10px 0 0; }
.auth-address { position: relative; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .38); }

/* ---- Anmeldeseite ------------------------------------------------------- */
.auth-panel { display: grid; place-items: center; padding: 48px 40px; background: var(--bg); }
.auth-card {
  width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: 0 30px 70px -40px rgba(20, 20, 26, .45); padding: 30px 34px 34px;
  animation: auth-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(14px); } }

.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-2); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { padding: 11px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color .2s, background .2s, box-shadow .2s; }
.auth-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.auth-pane { animation: auth-in .3s ease both; }
.auth-pane h2 { font-size: 25px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth-pane .field-label { margin-bottom: 8px; }
.auth-pane input {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: .15s;
}
.auth-pane input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: var(--ring); }
#codeInput { letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
#codeInput::placeholder { letter-spacing: .08em; font-weight: 500; text-transform: none; }
.auth-pane .err { color: var(--redo); font-size: 12.5px; min-height: 20px; padding-top: 6px; }
.auth-go { width: 100%; justify-content: center; padding: 14px 22px; font-size: 15px; }
.auth-hint { color: var(--muted-2); font-size: 12px; text-align: center; margin: 16px 0 0; }

/* ---- Schmalere Fenster --------------------------------------------------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  body.is-auth main { min-height: 0; }
  .auth-brand { padding: 40px 28px 34px; text-align: center; min-height: 46vh; }
  .auth-brand-inner { margin: 0 auto; }
  .auth-logo { margin: 0 auto 26px; width: min(280px, 70%); }
  .auth-rule { margin: 18px auto; }
  .auth-address { margin-top: 26px; text-align: center; }
  .auth-panel { padding: 28px 20px 46px; }
  .auth-card { border-radius: 18px; padding: 24px 22px 28px; }
}
