/* Logowanie / rejestracja panelu (admin.*) i logowanie platform.*. Układ wzorowany na Master of Channels, identyfikacja ShopDepot. */
@import url("https://fonts.bunny.net/css?family=onest:500,600,700,800,900|ibm-plex-mono:500,600&display=swap");
:root {
    /* Identyfikacja (claude/identyfikacja.md): Kreda, Atrament, Ultramaryna, Mgła; Onest + IBM Plex Mono */
    --ink: #0f1216; --muted: #4a4f57; --subtle: #8a9099; --line: #e2e4e8; --line-strong: #cfd2d7;
    --chalk: #f1f2ef; --brand: #2a3bd4; --brand-600: #1f2ebc; --brand-700: #1e2ba6; --brand-900: #0f1216; --brand-soft: #d9deff;
    --sun: #ffc93c; --focus: #2a3bd4;
    --danger: #b42318; --danger-bg: #fef3f2;
    --font: "Onest", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 500 15px/1.55 var(--font); color: var(--ink); background: var(--chalk); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.ico { display: block; flex: none; }

.auth-page { min-height: 100vh; min-height: 100dvh; display: grid;
    background: var(--chalk); }
.auth-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
@media (max-width: 960px) { .auth-split { grid-template-columns: 1fr; } .auth-pitch { display: none !important; } .auth-split .auth-main { background: #fff; } }

.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.auth-brand:hover { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { display: block; flex: none; }
.logo-word { font: 800 24px/1 var(--font); letter-spacing: -.045em; color: var(--ink); }
.auth-brand-note { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700);
    padding: 5px 9px 5px 16px; background: var(--brand-soft); clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); border-radius: 0 6px 6px 0; }

/* Lewa połowa - pitch (wzór: app.masterofchannels.com): Kreda, supergrafika metki, kafelki funkcji, opinia */
.auth-pitch { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 28px;
    padding: 40px clamp(32px, 5vw, 72px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; color: var(--muted);
    background: var(--chalk); border-right: 1px solid var(--line); isolation: isolate; }
.auth-pitch::-webkit-scrollbar { display: none; }
.auth-pitch .supertag { position: absolute; z-index: -1; right: -220px; bottom: -260px; width: 640px; height: 640px; opacity: .9; pointer-events: none; }
.auth-pitch-body { max-width: 540px; margin: auto 0; }
/* Etykieta-metka zamiast pigułki: szpic z lewej, dziurka, prawe narożniki zaokrąglone */
.auth-tag, .auth-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 22px; position: relative;
    background: var(--brand-soft); color: var(--brand-700); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); border-radius: 0 8px 8px 0;
    font: 600 11.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.auth-tag::before, .auth-kicker::before { content: ""; position: absolute; left: 11px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--chalk); }
.auth-kicker::before { background: #fff; }
.auth-pitch h2 { color: var(--ink); font-size: clamp(2rem, 3.1vw, 2.9rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 800; margin: 0 0 16px; }
.auth-pitch h2 em { font-style: normal; display: block; color: var(--brand); }
.auth-pitch p { margin: 0 0 26px; font-size: 16px; line-height: 1.6; max-width: 500px; }
.auth-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-features li { display: flex; gap: 14px; align-items: center; padding: 13px 16px; font-size: 13.5px; line-height: 1.45;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.auth-features strong { display: block; color: var(--ink); font-size: 14.5px; font-weight: 700; margin-bottom: 1px; }
.auth-feature-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.auth-quote { margin: 18px 0 0; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 18px 40px -28px rgba(15,18,22,.35); }
.auth-stars { display: flex; gap: 2px; color: var(--sun); margin-bottom: 10px; }
.auth-stars .ico { fill: currentColor; stroke: currentColor; }
.auth-quote blockquote { margin: 0 0 12px; color: var(--ink); font-size: 14.5px; line-height: 1.6; }
.auth-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.auth-quote figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.auth-quote figcaption strong { display: block; color: var(--ink); font-size: 14px; }
@media (min-width: 961px) and (max-height: 920px) {
    .auth-pitch { padding-top: 28px; padding-bottom: 28px; gap: 20px; }
    .auth-tag { margin-bottom: 12px; }
    .auth-pitch h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 10px; }
    .auth-pitch p { margin-bottom: 18px; font-size: 15px; }
    .auth-features { gap: 8px; }
    .auth-features li { padding: 9px 14px; }
    .auth-feature-icon { width: 34px; height: 34px; border-radius: 10px; }
    .auth-quote { margin-top: 12px; padding: 14px 18px; }
    .auth-quote blockquote { font-size: 14px; margin-bottom: 8px; }
}
.auth-channels small { display: block; font-size: 12px; color: var(--subtle); margin-bottom: 10px; }
.auth-channels div { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-channels span { padding: 5px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 13px; }

/* Prawa kolumna / karta */
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 20px 24px; min-height: 100vh; min-height: 100dvh; }
.auth-top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.auth-split .auth-top { max-width: 420px; }
.auth-lang { display: flex; gap: 4px; }
.auth-lang a { padding: 4px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.auth-lang a:hover { background: rgba(15,26,23,.05); text-decoration: none; }
.auth-lang a[aria-current] { background: var(--ink); color: #fff; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 30px 60px -30px rgba(15,18,22,.25), 0 2px 6px rgba(15,26,23,.05); }
.auth-split .auth-card { max-width: 420px; border: 0; box-shadow: none; padding: 0; }
.auth-split .auth-card h1 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -.045em; font-weight: 800; }
.auth-split .auth-top .auth-brand { visibility: hidden; }
@media (max-width: 960px) { .auth-split .auth-top .auth-brand { visibility: visible; } }
.auth-card h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 6px; }
.auth-sub { color: var(--muted); margin: 0 0 24px; }
.auth-foot { margin: 28px 0 0; font-size: 12.5px; color: var(--subtle); text-align: center; }
.auth-foot a { color: var(--subtle); font-weight: 500; }

/* Pola - pływające etykiety */
.auth-field { margin-bottom: 14px; }
.float { position: relative; }
.float input, .float select { display: block; width: 100%; height: 56px; padding: 22px 14px 6px; border: 1px solid var(--line-strong); border-radius: 12px;
    font: 15px var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.float select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6b67' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
.float input:hover, .float select:hover { border-color: #aab7b3; }
.float input:focus, .float select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(42,59,212,.16); }
.float label { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; transition: all .15s; font-size: 15px; }
.float input:focus + label, .float input:not(:placeholder-shown) + label, .float select + label { top: 16px; font-size: 12px; font-weight: 600; color: var(--muted); }
.float input:-webkit-autofill + label { top: 16px; font-size: 12px; }
.has-error .float input, .has-error .float select { border-color: var(--danger); }
.auth-error { margin: 6px 2px 0; color: var(--danger); font-size: 13px; }
.auth-help { margin: 6px 2px 0; color: var(--subtle); font-size: 13px; }
.slug-preview { color: var(--brand); font-weight: 650; word-break: break-all; }

/* Adres sklepu: pole + stała końcówka domeny (<handle>.shopdepot.com) */
.auth-label { display: block; margin: 0 2px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.auth-suffix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.auth-suffix input { flex: 1; min-width: 0; height: 52px; padding: 0 12px; border: 0; font: 15px var(--font); color: var(--ink); background: none; }
.auth-suffix input:focus { outline: none; }
.auth-suffix:hover { border-color: #aab7b3; }
.auth-suffix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(42,59,212,.16); }
.auth-suffix .addon { display: grid; place-items: center; padding: 0 12px; background: #f1f4f3; color: var(--muted); font-size: 14px; white-space: nowrap; border-left: 1px solid var(--line-strong); }
.has-error .auth-suffix { border-color: var(--danger); }
.reveal { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--subtle); cursor: pointer; display: grid; place-items: center; }
.reveal:hover, .reveal.is-on { color: var(--ink); background: #f1f4f3; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .auth-grid { grid-template-columns: 1fr; } }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; font-size: 14px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; font-size: 14px; }
.auth-check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; flex: none; }
.auth-terms { align-items: flex-start; line-height: 1.45; }
.auth-terms input { margin-top: 1px; }

.auth-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 0; border-radius: 999px; background: var(--brand); color: #fff;
    font: 700 15.5px var(--font); cursor: pointer; margin-top: 6px; transition: background .15s, transform .1s; }
.auth-btn:hover { background: var(--brand-600); text-decoration: none; }
.auth-btn:active { transform: translateY(1px); }
.auth-alt { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.auth-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.auth-note .ico { color: var(--brand); }

.auth-alert { padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; }
.auth-alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecdca; }
.auth-alert-success { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }

.auth-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 22px; padding: 0; counter-reset: s; }
.auth-steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--subtle); }
.auth-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #eef2f1; color: var(--muted); }
.auth-steps li + li::after { content: none; }
.auth-steps li + li { padding-left: 12px; border-left: 1px solid var(--line); }
.auth-steps li.is-current { color: var(--ink); }
.auth-steps li.is-current::before { background: var(--ink); color: #fff; }
.auth-steps li.is-done::before { content: "✓"; background: var(--brand-soft); color: var(--brand); }
.auth-state { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.auth-state-warn { background: #fff4e5; color: #b54708; }

/* plan wybrany na cenniku */
.auth-plan { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-700); font-size: 14px; font-weight: 600; }
.auth-plan svg { flex: none; }

/* Ekran kodu 2FA: akcje formularzy wyglądające jak link */
.auth-link-button { border: 0; background: none; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.auth-link-button:hover { text-decoration: underline; }

/* LastPass: bez ikony w polach rejestracji (logowanie zostaje - tam menedżer haseł się przydaje) */
form[name="registration"] [data-lastpass-icon-root],
form[name="registration_store"] [data-lastpass-icon-root] { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* Wybór organizacji (admin.*/account/organizations) - ekran poza panelem, jak wybór sklepu w Shopify */
.org-page .auth-main { justify-content: flex-start; padding-top: clamp(32px, 8vh, 88px); }
.org-top { justify-content: center; }
.org-card { max-width: 480px; }
.org-card h1 { letter-spacing: -.035em; }
.org-empty { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--chalk); color: var(--muted); font-size: 14px; }
.org-list { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.org-list li + li { border-top: 1px solid var(--line); }
.org-list form { margin: 0; }
.org-row, .org-add { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: #fff;
    font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background .12s; }
.org-row:hover, .org-add:hover { background: #f6f7f9; text-decoration: none; }
.org-row.is-current { background: #f7f8ff; }
.org-avatar, .org-add-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-700); font: 800 17px/1 var(--font); }
img.org-avatar { object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.org-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.org-info strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-info small { font-size: 13px; font-weight: 500; color: var(--muted); }
.org-warn { color: var(--danger); font-weight: 600; }
.org-badge { flex: none; padding: 3px 9px; border-radius: 999px; background: #ecfdf3; color: #067647; font-size: 12px; font-weight: 700; }
.org-chevron { flex: none; color: var(--subtle); }
.org-add { border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink); font-weight: 500; }
.org-add-icon { background: var(--ink); color: #fff; }
.org-add:hover { border-color: var(--brand); }
.org-back { margin: 20px 0 0; font-size: 14px; text-align: center; }
.org-back-top { margin: 0 0 14px; text-align: left; }
.org-foot { margin-top: 20px; }
