body.santa-customer-auth,
#santa-creator:has(.santa-auth-entry) {
  --santa-login-background: url('./assets/login-desktop.webp');
  --santa-login-ink: #f6faff;
  --santa-login-muted: #dfebf6;
  --santa-login-accent: #a9dff4;
  --santa-login-paper: #162d40;
  --santa-login-border: #c7e3f38a;
  --santa-login-radius: 21px;
}

@media (max-width: 700px) {
  body.santa-customer-auth,
  #santa-creator:has(.santa-auth-entry) {
    --santa-login-background: url('./assets/login-mobile.webp');
  }
}

body.santa-account-page.santa-customer-auth {
  margin: 0;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  background: #25426b;
  color: var(--santa-login-ink);
}

body.santa-customer-auth::before,
#santa-creator:has(.santa-auth-entry)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #08182b30, #08182b0f 45%, #08182b69),
    #25426b var(--santa-login-background) center / cover no-repeat;
}

body.santa-customer-auth > main:not(.santa-panel-login),
body.santa-customer-auth .santa-panel-login,
body.santa-customer-auth.pnp-public-payment .pnp-payment-wrap {
  box-sizing: border-box;
  display: grid;
  align-content: center;
  width: min(100%, 466px);
  min-height: 100vh;
  min-height: 100svh;
  max-width: none;
  margin: 0 auto;
  padding: 24px 14px;
}

body.santa-customer-auth .santa-account {
  --santa-ink: var(--santa-login-ink);
  --santa-muted: var(--santa-login-muted);
  --santa-accent: var(--santa-login-accent);
  --santa-line: #b8c9db;
  --santa-paper: var(--santa-login-paper);
  font-size: .875rem;
  line-height: 1.5;
}

body.santa-customer-auth .santa-account-card,
body.santa-customer-auth.pnp-public-payment .pnp-payment-main,
#santa-creator .entry-card.santa-auth-entry {
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--santa-login-border);
  border-radius: var(--santa-login-radius);
  background: var(--santa-login-paper);
  color: var(--santa-login-ink);
  box-shadow: 0 18px 52px #09182870, inset 0 1px 0 #ffffff29;
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  body.santa-customer-auth .santa-account-card,
  body.santa-customer-auth.pnp-public-payment .pnp-payment-main,
  #santa-creator .entry-card.santa-auth-entry {
    background: linear-gradient(145deg, #19344acc, #11283ce0);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    backdrop-filter: blur(16px) saturate(115%);
  }
}

body.santa-customer-auth .santa-account > .santa-account-card:has(form.login),
body.santa-customer-auth .santa-account > .santa-account-grid,
body.santa-customer-auth .santa-account > .santa-account-grid .santa-account-card {
  background: transparent;
  backdrop-filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.santa-customer-auth .santa-account.santa-password-login {
  padding: clamp(20px, 5vw, 32px);
  border: 1px solid var(--santa-login-border);
  border-radius: var(--santa-login-radius);
  background: var(--santa-login-paper);
  box-shadow: 0 18px 52px #09182870, inset 0 1px 0 #ffffff29;
}

@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  body.santa-customer-auth .santa-account.santa-password-login {
    background: linear-gradient(145deg, #19344acc, #11283ce0);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    backdrop-filter: blur(16px) saturate(115%);
  }
}

body.santa-customer-auth .santa-account .santa-auth-brand,
#santa-creator .santa-auth-entry .santa-auth-logo {
  display: block;
  width: min(100%, 128px);
  margin: 0 auto 12px;
  padding: 4px 7px;
  border: 1px solid #fff9;
  border-radius: 10px;
  background: #fff8f2f2;
}

body.santa-customer-auth .santa-account .santa-account-logo {
  width: 100%;
  margin: 0;
}

body.santa-customer-auth .santa-account :is(h1, .santa-recovery-heading),
body.santa-customer-auth.pnp-public-payment .pnp-payment-main > h1,
#santa-creator .santa-auth-entry h1 {
  color: var(--santa-login-ink);
  font-family: inherit;
  font-size: clamp(1.375rem, 4.8vw, 1.7rem);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -.032em;
  text-align: center;
  margin: 0 0 12px;
}

body.santa-customer-auth .santa-account h2:not(.santa-recovery-heading) {
  color: var(--santa-login-ink);
  font-size: .93rem;
  margin: 0 0 5px;
}

body.santa-customer-auth .santa-account p { margin: 0 0 12px; }
body.santa-customer-auth .santa-account p:last-child { margin-bottom: 0; }
body.santa-customer-auth .santa-account .santa-account-eyebrow {
  display: block;
  text-align: center;
}
body.santa-customer-auth .santa-account form .form-row { margin: 0 0 14px; }
body.santa-customer-auth .santa-account .santa-account-card form { margin: 14px 0; }
body.santa-customer-auth .santa-account .santa-account-card form .button {
  width: 100%;
}
body.santa-customer-auth .santa-account .santa-account-card form .button:not(.secondary),
#santa-creator .santa-auth-entry .btn:not(.secondary) {
  color: #10273a;
  background: #a9dff4;
  border-color: #d5f2ff;
}
body.santa-customer-auth .santa-account .santa-account-card form .button:not(.secondary):hover,
#santa-creator .santa-auth-entry .btn:not(.secondary):hover {
  color: #10273a;
  background: #c4edff;
}
body.santa-customer-auth .santa-account form :is(input[type=email], input[type=text], input[type=password]),
#santa-creator .santa-auth-entry .input {
  min-height: 46px;
  border-color: #9bb5c9;
  color: #10273a;
  background: #f2f7fc;
  font-size: 16px;
}
body.santa-customer-auth .santa-account :focus-visible,
#santa-creator .santa-auth-entry :focus-visible {
  outline: 3px solid #a6e3fb;
}
body.santa-customer-auth.pnp-public-payment .pnp-payment-content > p > a {
  color: var(--santa-login-accent);
}
body.santa-customer-auth .santa-account [role=alert] {
  padding: 9px 12px;
  border-radius: 8px;
  color: #ffe9ed;
  background: #633148;
}
body.santa-customer-auth .santa-account .santa-account-actions {
  gap: 8px;
  margin: 0;
}
body.santa-customer-auth .santa-account .santa-account-card form .button.secondary {
  background: transparent;
}
body.santa-customer-auth .santa-account .santa-account-grid {
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 12px;
  padding: 0;
  border-top: 1px solid #b8c9db69;
}
body.santa-customer-auth .santa-account.santa-password-login > .santa-account-card { padding: 0; }
body.santa-customer-auth .santa-account .santa-account-grid .santa-account-card {
  padding: 10px 0;
  margin: 0;
}
body.santa-customer-auth .santa-account .santa-account-grid .santa-account-card + .santa-account-card {
  border-top: 1px solid #b8c9db69;
}
body.santa-customer-auth .santa-account .santa-account-grid .button {
  min-height: 40px;
  color: var(--santa-login-accent);
  background: transparent;
  border-color: #b8c9db;
}
/* Woo’s public recovery wrapper supplies the page heading and owns the outer card. */
body.santa-customer-auth.pnp-public-payment .pnp-payment-wrap:has(.santa-auth-brand) .pnp-payment-header {
  display: none;
}
body.santa-customer-auth.pnp-public-payment .pnp-payment-wrap:not(:has(.santa-auth-brand)) .pnp-payment-header {
  justify-self: center;
}
body.santa-customer-auth.pnp-public-payment .pnp-payment-wrap:not(:has(.santa-auth-brand)) .pnp-payment-brand {
  color: #fff;
}
body.santa-customer-auth.pnp-public-payment .pnp-payment-content .santa-account-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.santa-customer-auth.pnp-public-payment .pnp-payment-content .santa-recovery-heading {
  font-size: 1.15rem;
}
body.santa-customer-auth.pnp-public-payment .pnp-payment-content > p {
  font-size: .85rem;
}

#santa-creator:has(.santa-auth-entry) {
  --ink: var(--santa-login-ink);
  --muted: var(--santa-login-muted);
  --accent: var(--santa-login-accent);
  --line: #b8c9db;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
}
#santa-creator:has(.santa-auth-entry) .topbar {
  justify-content: flex-end;
  min-height: 48px;
  width: auto;
  margin: 0;
  padding: 4px 18px;
  background: transparent;
}
#santa-creator:has(.santa-auth-entry) .topbar .brand { display: none; }
#santa-creator:has(.santa-auth-entry) .topbar .quiet-link {
  color: #fff;
  text-shadow: 0 1px 6px #132d58;
}
#santa-creator:has(.santa-auth-entry) .shell {
  display: grid;
  align-content: center;
  flex: 1;
  width: 100%;
  padding: 10px 14px 24px;
}
#santa-creator:has(.santa-auth-entry) .entry-layout {
  box-sizing: border-box;
  width: min(100%, 468px);
  margin: 0 auto;
}
#santa-creator .entry-card.santa-auth-entry::before { content: none; }
#santa-creator .santa-auth-entry .eyebrow {
  color: #c6e6f7;
  text-align: center;
}
#santa-creator .santa-auth-entry :is(.text-btn, .quiet-link, .entry-secondary a, .small a) {
  color: var(--santa-login-accent);
}
#santa-creator .santa-auth-entry p { font-size: .875rem; line-height: 1.5; }
#santa-creator .santa-auth-entry .field { margin-bottom: 14px; }
#santa-creator .santa-auth-entry .input::placeholder { color: #526b80; }
#santa-creator .santa-auth-entry .btn.secondary {
  background: transparent;
  border-color: #b8c9db;
  color: var(--santa-login-accent);
}
#santa-creator .santa-auth-entry .entry-new-story {
  background: transparent;
  border-color: #b8c9db69;
}
#santa-creator .santa-auth-entry .btn { min-height: 44px; }
#santa-creator:has(.santa-auth-entry) .entry-help,
#santa-creator:has(.santa-auth-entry) .footer {
  color: #fff;
  background: #193557;
}
#santa-creator:has(.santa-auth-entry) .entry-help a { color: inherit; }

/* 0.9.16 (decyzja 27): strony przycisków z maila po zakupie — jeden duży przycisk. */
body.santa-customer-auth .santa-account .santa-account-card .button.santa-cta {
  width: 100%;
  min-height: 54px;
  font-size: 1rem;
  color: #10273a;
  background: #a9dff4;
  border-color: #d5f2ff;
}
body.santa-customer-auth .santa-account .santa-account-card .button.santa-cta:hover { background: #c4edff; }
body.santa-customer-auth .santa-account .santa-account-card a.button.santa-cta { display: flex; margin: 14px 0 0; }
body.santa-customer-auth .santa-gift .santa-account-actions { display: grid; gap: 8px; margin: 0 0 12px; }
body.santa-customer-auth .santa-gift .santa-account-actions .button { width: 100%; }
body.santa-customer-auth .santa-gift .button.secondary { color: var(--santa-login-accent); background: transparent; border-color: #b8c9db; }
body.santa-customer-auth .santa-gift #santa-gift-code { display: block; width: 100%; min-height: 58px; padding: 8px 10px; border: 1px solid #9bb5c9; border-radius: 8px; color: #10273a; background: #f2f7fc; font: 600 1rem/1.45 Menlo, Consolas, monospace; letter-spacing: .02em; text-align: center; word-break: break-all; resize: none; }
body.santa-customer-auth .santa-gift [hidden] { display: none !important; }
