/* ──────────────────────────────────────────────────────────
   RPGVault · Auth Pages CSS
   Gilt für: login, register, password_reset, registration_pending
   ────────────────────────────────────────────────────────── */

/* ── Zwei-Panel-Layout (login + register) ───────────────── */
.auth-page {
  min-height: calc(100vh - 62px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-container {
  display: grid;
  grid-template-columns: 1fr 430px;
  max-width: 940px; width: 100%;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 28px 90px rgba(0,0,0,.75);
}

/* ── CTA-Panel (links) ──────────────────────────────────── */
.auth-cta {
  background:
    radial-gradient(ellipse 80% 60% at 20% 110%, rgba(255,90,20,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% -10%, rgba(255,90,20,.10) 0%, transparent 55%),
    linear-gradient(160deg, #111318 0%, #0c0e13 100%);
  border: 1px solid rgba(255,90,20,.18);
  border-right: none;
  padding: 52px 44px;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  position: relative; overflow: hidden;
}
.auth-cta::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.013'%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;
}
.auth-cta-eyebrow {
  font-family: var(--font-d); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--lava); margin-bottom: 14px;
}
.auth-cta-headline {
  font-family: var(--font-d); font-size: 28px; font-weight: 900;
  line-height: 1.15; letter-spacing: .03em;
  background: linear-gradient(135deg, #fff 0%, #c8cdd8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.auth-cta-sub {
  font-size: 14px; line-height: 1.6; color: var(--muted);
  margin-bottom: 32px; max-width: 340px;
}
.auth-features {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: flex; flex-direction: column; gap: 12px;
}
.auth-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; color: var(--fg);
}
.auth-feat-icon {
  width: 30px; height: 30px; border-radius: 7px; flex-shrink: 0;
  background: rgba(255,90,20,.12); border: 1px solid rgba(255,90,20,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--lava);
}
.auth-feat-text strong { display: block; font-weight: 600; color: #fff; font-size: 13px; margin-bottom: 1px; }
.auth-feat-text span   { font-size: 12px; color: var(--muted); }

.auth-cta-divider { height: 1px; background: rgba(255,255,255,.07); margin-bottom: 28px; }
.auth-cta-reg { display: flex; flex-direction: column; gap: 10px; }
.auth-cta-reg-label { font-size: 13px; color: var(--muted); }
.auth-cta-reg-label strong { color: var(--fg); }

/* Buttons im CTA-Panel */
.btn-reg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lava); color: #fff;
  border: none; border-radius: 7px;
  padding: 11px 20px; font: 700 13px/1 var(--font-d);
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: filter .15s, box-shadow .15s;
  box-shadow: 0 4px 18px rgba(255,90,20,.35);
  width: fit-content;
}
.btn-reg:hover { filter: brightness(1.15); box-shadow: 0 6px 24px rgba(255,90,20,.5); }

.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--lava);
  border: 1px solid var(--lava); border-radius: 7px;
  padding: 11px 20px; font: 700 13px/1 var(--font-d);
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s;
  width: fit-content;
}
.btn-login:hover { background: rgba(255,90,20,.1); box-shadow: 0 0 18px rgba(255,90,20,.25); }

/* ── Form-Panel (rechts, zwei-Panel-Layout) ─────────────── */
.auth-form-panel {
  background: linear-gradient(180deg,#16181e,#101216) padding-box,
              linear-gradient(160deg,#6a707b,#2a2e36 40%,#1d2026 60%,#565c67) border-box;
  border: 1px solid transparent;
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto; max-height: 90vh;
}

/* ── Ein-Panel-Layout (password reset, registration_pending) */
.auth-wrap { max-width: 480px; margin: 60px auto; padding-inline: 16px; }
.auth-panel {
  background: linear-gradient(180deg,#16181e,#101216) padding-box,
              linear-gradient(160deg,#6a707b,#2a2e36 40%,#1d2026 60%,#565c67) border-box;
  border: 1px solid transparent; border-radius: 10px;
  padding: 36px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.auth-panel.centered { text-align: center; }

/* ── Gemeinsame Elemente ─────────────────────────────────── */
.auth-icon { font-size: 48px; margin-bottom: 16px; }
.auth-title {
  font-family: var(--font-d); font-size: 18px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--steel); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.auth-sub  { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.auth-body { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.auth-body strong { color: var(--text); }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--key); }
.auth-foot a:hover { color: var(--key-hi); }

/* ── Formularfelder ─────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label {
  font-family: var(--font-d); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.field input:not([type=checkbox]) {
  background: #0c0d11; border: 1px solid var(--border);
  border-radius: 5px; padding: 10px 12px;
  font: 500 15px/1 var(--font-u); color: var(--text); letter-spacing: .01em;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus {
  outline: none; border-color: var(--lava);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5), 0 0 0 1px rgba(255,90,20,.5), 0 0 12px rgba(255,90,20,.25);
}
.field-errors { font-size: 12px; color: #ff6b6b; margin-top: 4px; }
.field-help   { font-size: 11px; color: var(--muted); margin-top: 2px; }

.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row img { border-radius: 4px; border: 1px solid var(--border); }
.captcha-row input {
  background: #0c0d11; border: 1px solid var(--border);
  border-radius: 5px; padding: 10px 12px;
  font: 500 15px/1 var(--font-u); color: var(--text);
  width: 120px; max-width: 120px;
}
.captcha-row input:focus { outline: none; border-color: var(--lava); box-shadow: 0 0 0 1px rgba(255,90,20,.5); }

.non-field-errors {
  background: rgba(255,77,77,.1); border: 1px solid rgba(255,77,77,.3);
  border-radius: 5px; padding: 10px 12px; font-size: 13px; color: #ff8080; margin-bottom: 16px;
}
.btn-full { width: 100%; justify-content: center; }

/* ── Register: Zustimmungs-Checkboxen ───────────────────── */
.consent-block {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  margin-bottom: 16px;
}
.consent-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px; cursor: pointer;
  transition: background .12s;
}
.consent-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.consent-item:hover { background: rgba(255,255,255,.03); }
.consent-item input[type=checkbox] {
  accent-color: var(--lava); width: 15px; height: 15px; flex-shrink: 0;
  margin-top: 2px; cursor: pointer;
}
.consent-text  { flex: 1; }
.consent-title { font: 600 12px/1.3 var(--font-u); color: var(--text); }
.consent-desc  { font-size: 11px; color: var(--muted); margin-top: 2px; }
.consent-desc a { color: var(--key); text-decoration: none; }
.consent-desc a:hover { color: var(--key-hi); text-decoration: underline; }
.consent-error { font-size: 12px; color: #ff6b6b; padding: 5px 14px 8px; }

/* ── Register: Promo-Banner ─────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, rgba(255,90,20,.1), rgba(60,182,255,.08));
  border: 1px solid rgba(255,90,20,.3); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.promo-banner i { font-size: 20px; color: var(--lava); flex-shrink: 0; }
.promo-banner p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.4; }
.promo-banner strong { color: var(--lava-hi); }

/* ── Password Reset Confirm: ungültiger Link ────────────── */
.invalid-box {
  background: rgba(255,77,77,.1); border: 1px solid rgba(255,77,77,.3);
  border-radius: 8px; padding: 20px; text-align: center; color: #ff8080;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .auth-container { grid-template-columns: 1fr; }
  .auth-cta { border-right: 1px solid rgba(255,90,20,.18); border-bottom: none; padding: 32px 24px; }
  .auth-form-panel { padding: 32px 24px; max-height: none; }
  .auth-cta-headline { font-size: 22px; }
}

/* ── Light Mode ─────────────────────────────────────────── */
[data-theme="light"] .auth-container { box-shadow: 0 12px 50px rgba(0,0,0,.15); }
[data-theme="light"] .auth-cta {
  background:
    radial-gradient(ellipse 80% 60% at 20% 110%, rgba(0,136,204,.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% -10%, rgba(0,136,204,.08) 0%, transparent 55%),
    linear-gradient(160deg, #e8f4fb 0%, #dde8f0 100%);
  border: 1px solid rgba(0,136,204,.2); border-right: none;
}
[data-theme="light"] .auth-cta::before {
  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='%23000000' fill-opacity='0.025'%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");
}
[data-theme="light"] .auth-cta-headline {
  background: linear-gradient(135deg, #0a0806 0%, #3a3530 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .auth-feat-icon {
  background: rgba(0,136,204,.10); border: 1px solid rgba(0,136,204,.25); color: var(--lava);
}
[data-theme="light"] .auth-feat-text strong { color: #1a1612; }
[data-theme="light"] .auth-cta-divider { background: rgba(0,0,0,.08); }
[data-theme="light"] .btn-reg  { box-shadow: 0 4px 18px rgba(0,136,204,.35); }
[data-theme="light"] .btn-reg:hover { box-shadow: 0 6px 24px rgba(0,136,204,.55); }
[data-theme="light"] .btn-login { color: var(--lava); border-color: var(--lava); }
[data-theme="light"] .btn-login:hover { background: rgba(0,136,204,.1); box-shadow: 0 0 18px rgba(0,136,204,.25); }

[data-theme="light"] .auth-form-panel {
  background:
    linear-gradient(180deg, #ffffff, #f5f7fa) padding-box,
    linear-gradient(160deg, #c8cdd7, #a0a8b4 40%, #8d94a3 60%, #c0c7d0) border-box;
}
[data-theme="light"] .auth-panel {
  background:
    linear-gradient(180deg, #ffffff, #f5f7fa) padding-box,
    linear-gradient(160deg, #c8cdd7, #a0a8b4 40%, #8d94a3 60%, #c0c7d0) border-box;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
[data-theme="light"] .auth-title {
  background: linear-gradient(135deg, #1a1612 0%, #3a3530 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .field input:not([type=checkbox]),
[data-theme="light"] .captcha-row input {
  background: #ffffff; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); color: var(--text);
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .captcha-row input:focus {
  border-color: var(--lava);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,136,204,.5), 0 0 12px rgba(0,136,204,.2);
}
[data-theme="light"] .captcha-row img { border-color: var(--border); }
[data-theme="light"] .consent-item:hover { background: rgba(0,0,0,.03); }
[data-theme="light"] .promo-banner {
  background: linear-gradient(135deg, rgba(0,136,204,.08), rgba(200,88,0,.05));
  border-color: rgba(0,136,204,.25);
}
