/* ---------- panel: logowanie, rejestracja, kod, nowe hasło ---------- */
/* atrybut hidden ma wygrywać z display ustawionym w klasach (.btn, .check itd.) */
[hidden] { display: none !important; }
.auth { min-height: 100svh; display: flex; flex-direction: column;
  background: radial-gradient(900px 600px at 85% -10%, rgba(123, 77, 255, 0.22), transparent 70%), var(--night); }
.auth-head .wrap { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-back { font-size: 0.92rem; font-weight: 700; color: var(--on-d-soft); text-decoration: none; }
.auth-back:hover { color: #fff; }
.auth-main { flex: 1; padding-block: clamp(20px, 5vw, 56px) clamp(40px, 6vw, 72px); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.auth-grid.narrow { grid-template-columns: minmax(0, 480px); justify-content: center; }
.auth-foot { border-top: 1px solid var(--line-d); padding-block: 20px; }
.auth-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.86rem; color: var(--on-d-soft); }
.auth-foot a { color: var(--on-d-soft); text-decoration: none; }
.auth-foot a:hover { color: #fff; }

.proto-note { margin-bottom: 22px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 181, 71, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, 0.35);
  color: #ffd9a0; font-size: 0.88rem; font-weight: 650; }

.auth-card h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 850; font-stretch: 114%; letter-spacing: -0.025em; line-height: 1.05; }
.auth-card .lead { margin-top: 12px; color: var(--on-d-soft); font-size: 1.05rem; max-width: 46ch; }
.auth-form { margin-top: 28px; display: grid; gap: 18px; }
.auth-alt { margin-top: 26px; color: var(--on-d-soft); font-size: 0.98rem; }
.auth-alt a, .field-row a { color: #fff; font-weight: 750; text-underline-offset: 0.2em; }

/* pola formularza */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .label { font-size: 0.92rem; font-weight: 750; color: #e6e3ee; }
.hint { font-size: 0.84rem; color: var(--on-d-soft); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.9rem; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 0; font: inherit; font-size: 1rem; font-weight: 600; color: #fff;
  background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transition: box-shadow 140ms ease; }
.input::placeholder { color: #7f7891; font-weight: 500; }
.input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 4px rgba(139, 92, 255, 0.22); }
.input:user-invalid { box-shadow: inset 0 0 0 2px #ff7a7a; }
select.input { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #b6b0c6 50%), linear-gradient(135deg, #b6b0c6 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.pw { position: relative; }
.pw .input { padding-right: 92px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 6px 12px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 0.84rem; font-weight: 750; cursor: pointer; }
.pw-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.code-input { text-align: center; font-family: var(--display); font-size: 1.8rem; font-weight: 800; letter-spacing: 0.4em; padding-left: 0.4em; }
.code-input.backup { font-size: 1.4rem; letter-spacing: 0.18em; padding-left: 0.18em; }
.link-btn { padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.link-btn:disabled { color: var(--on-d-soft); text-decoration: none; cursor: default; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }

.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.94rem; color: #e6e3ee; cursor: pointer; }
.check input { appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; background: var(--night-2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); cursor: pointer;
  display: grid; place-items: center; }
.check input::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--grad-btn); box-shadow: none; }
.check input:checked::after { opacity: 1; }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]::after { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check a { color: #fff; font-weight: 750; }

.btn-block { width: 100%; }
.form-msg { padding: 14px 16px; border-radius: 14px; background: rgba(91, 225, 111, 0.1); box-shadow: inset 0 0 0 1px rgba(91, 225, 111, 0.35); color: #c9f5d1; font-weight: 650; font-size: 0.95rem; }
.form-msg[hidden] { display: none; }

/* kroki rejestracji */
.steps-bar { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; }
.steps-bar li { display: grid; gap: 8px; font-size: 0.86rem; font-weight: 750; color: var(--on-d-soft); }
.steps-bar li::before { content: ""; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.steps-bar li.on { color: #fff; }
.steps-bar li.on::before { background: var(--grad-btn); }
.step { display: grid; gap: 18px; border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { padding: 0; margin-bottom: 4px; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.25rem; }
.js .step:not(.on) { display: none; }
.step-nav { display: flex; gap: 12px; }
.step-nav .btn { flex: 1; }

/* kolory karty */
.swatch-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.swatch-field legend { padding: 0; margin-bottom: 7px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.swatch { position: relative; }
.swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.swatch span { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--gold); }
.swatch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 5px; }

.next-info { display: grid; gap: 10px; padding: 16px 18px; border-radius: 16px; background: rgba(139, 92, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(139, 92, 255, 0.35); }
.next-title { font-weight: 800; color: #fff; }
.next-info ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.94rem; color: #e6e3ee; }
.next-info li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.next-info li::before { content: ""; width: 10px; height: 10px; margin-top: 0.5em; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--gold); }

/* wybór pakietu */
.reg-bill { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.reg-bill label { position: relative; text-align: center; padding: 9px 6px; border-radius: 999px; font-weight: 800; font-size: 0.92rem; color: var(--on-d-soft); cursor: pointer; }
.reg-bill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.reg-bill label:has(input:checked) { background: var(--grad-btn); color: #fff; }
.reg-bill label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.plan-pick { display: grid; gap: 10px; }
.pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 16px 18px; border-radius: 18px; cursor: pointer;
  background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick b { font-family: var(--display); font-weight: 850; font-stretch: 112%; font-size: 1.15rem; }
.pick .pick-price { font-family: var(--display); font-weight: 850; font-size: 1.15rem; text-align: right; }
.pick small { grid-column: 1 / -1; color: var(--on-d-soft); font-size: 0.86rem; font-weight: 600; }
.pick:has(input:checked) { box-shadow: inset 0 0 0 2px var(--violet), 0 14px 40px -18px rgba(123, 77, 255, 0.8); background: #1f1b2a; }
.pick:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.summary { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-d); display: grid; gap: 6px; font-size: 0.95rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line-d); font-weight: 800; font-size: 1.05rem; }
.summary span:first-child { color: var(--on-d-soft); }
.summary .total span:first-child { color: #fff; }

/* karta po prawej: podgląd na żywo */
.auth-side { position: sticky; top: 24px; display: grid; justify-items: center; gap: 20px; padding-top: 8px; }
.side-cap { max-width: 34ch; text-align: center; color: var(--on-d-soft); font-size: 0.98rem; }
.side-cap b { color: #fff; }
.mp { --pass-bg: #1f3d36; --pass-ink: #f3f1ea; --pass-accent: #f2b33d;
  width: min(100%, 380px); font-size: clamp(15px, 1.5vw, 18px); border-radius: 1.1em; padding: 1em 1em 1.2em; display: grid; gap: 0.9em;
  background: var(--pass-bg); color: var(--pass-ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg); transition: background-color 300ms ease; }
.mp-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; }
.mp-org { display: flex; align-items: center; gap: 0.55em; min-width: 0; font-weight: 800; }
.mp-org span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-logo { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--pass-accent); color: var(--pass-bg); display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-stretch: 120%; }
.mp .pass-strip { background: rgba(0, 0, 0, 0.22); }
.mp .slot { border-color: color-mix(in srgb, var(--pass-ink) 45%, transparent); }
.mp .slot i { background: radial-gradient(circle, var(--pass-accent) 0 30%, var(--pass-bg) 32% 50%, var(--pass-accent) 52% 64%, var(--pass-bg) 66% 100%); }
.mp .pass-qr { width: 34%; }
.mp-fields { display: flex; justify-content: space-between; gap: 1em; }
.mp-fields div { display: grid; line-height: 1.2; min-width: 0; }
.mp-fields div:last-child { text-align: right; }
.mp-fields small { font-size: 0.62em; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; font-weight: 700; }
.mp-fields b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-count { text-align: right; line-height: 1.15; }
.mp-count small { display: block; font-size: 0.6em; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; font-weight: 700; }
.mp-count b { font-size: 1.2em; font-weight: 800; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-side { position: static; order: -1; padding-top: 0; }
  .auth-side .side-cap { display: none; }
  .mp { font-size: 13px; width: min(100%, 320px); }
  .auth-login .auth-side { display: none; }
  .js .auth-reg .auth-side { display: none; }
  .js .auth-reg.at-2 .auth-side { display: grid; position: sticky; top: 0; z-index: 5; margin-inline: -16px; padding: 10px 16px 12px;
    background: linear-gradient(var(--night) 85%, transparent); }
  .auth-reg .mp { font-size: 11px; width: min(100%, 300px); transform: none; gap: 0.7em; }
  .auth-reg .mp .pass-qr, .auth-reg .mp .mp-fields { display: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .mp { transition: none; } }
