/* Pixelia light look for the guest pages (login, register, forgot password, 2FA, banned) - 2026-11-17.
   The pages are built with the shadcn / Tailwind classes of tailwind.css, which read their colours from CSS variables;
   this file only swaps those variables to the CMS palette and restyles the few component classes. */
html.px-auth-html { color-scheme: light; }
body.px-auth {
  --background: #f2f6fc;
  --foreground: #14233a;
  --card: #ffffff;
  --card-foreground: #14233a;
  --popover: #ffffff;
  --popover-foreground: #14233a;
  --primary: #2276d0;
  --primary-foreground: #ffffff;
  --secondary: #eaf2fd;
  --secondary-foreground: #14233a;
  --muted: #eef3fa;
  --muted-foreground: #5b6b84;
  --accent: #e8f1fd;
  --accent-foreground: #14233a;
  --destructive: #d23f3f;
  --destructive-foreground: #ffffff;
  --border: #dbe6f5;
  --input: #cfdcf0;
  --ring: #3b82f6;
  font-family: Ubuntu, Inter, system-ui, sans-serif;
  background: var(--background);
}

/* soft colour blobs behind everything (blue, purple, pink, yellow) */
.px-auth-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  background:
    radial-gradient(520px 420px at 6% 0%, rgba(52, 182, 214, .30), transparent 70%),
    radial-gradient(480px 400px at 100% 8%, rgba(143, 110, 224, .24), transparent 70%),
    radial-gradient(560px 440px at 96% 100%, rgba(238, 106, 170, .26), transparent 70%),
    radial-gradient(420px 340px at 0% 100%, rgba(247, 194, 31, .24), transparent 70%),
    #f2f6fc;
}
.px-auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80'%3E%3Cpath d='M0 40 80 0 160 40 80 80ZM0 0 80 40 160 0M0 80 80 40 160 80' fill='none' stroke='%232276d0' stroke-opacity='.06' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 160px 80px;
}

/* the old dark glow decorations go away */
.px-auth .side-glow, .px-auth [class*="oklch(0.145"], .px-auth [class*="oklch(0.84"] { display: none !important; }

/* cards, fields, buttons */
.px-auth .card {
  border: 0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 26px 54px -26px rgba(20, 70, 160, .5), inset 0 0 0 1px #e6eefa;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.px-auth .card.p-3, .px-auth a.card { border-radius: 18px; box-shadow: 0 14px 30px -20px rgba(20, 70, 160, .5), inset 0 0 0 1px #e6eefa; }
.px-auth .label { color: #2a3b57; font-weight: 600; }
.px-auth .input {
  height: 46px;
  border: 1px solid #d3dff2;
  border-radius: 14px;
  background: #f7faff;
  color: var(--foreground);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.px-auth .input::placeholder { color: #8a99b3; }
.px-auth .input:focus { outline: none; border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 4px rgba(59, 130, 246, .16); }
.px-auth .btn-primary {
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(#2a86e0, #1d68c4);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 22px -10px rgba(29, 104, 196, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .12s, filter .12s;
}
.px-auth .btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.px-auth .btn-secondary { height: 46px; border-radius: 14px; background: #fff; border-color: #d3dff2; color: #1c2b44; font-weight: 600; }
.px-auth .btn-secondary:hover { background: #eef5ff; }
.px-auth .badge { border-radius: 999px; background: #eaf2fd; border-color: #cfe0f7; color: #1d68c4; }
.px-auth a.text-primary, .px-auth .text-primary { color: #1d68c4; }
.px-auth .logo-shine img { filter: drop-shadow(0 8px 14px rgba(20, 70, 160, .35)); }

/* promo cards at the screen edges + helper widget: light cards */
.px-auth .ad-card { box-shadow: 0 24px 44px -20px rgba(20, 70, 160, .5); border: 0; background: #fff; }
.px-auth .ad-slide-label { background: rgba(20, 35, 58, .72); color: #fff; }
.px-auth .alfred-bubble { background: #fff; color: #14233a; box-shadow: 0 12px 24px -12px rgba(20, 70, 160, .6); }

/* ---- register button + inline register pane on the login page ---- */
.px-reg-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; color: var(--muted-foreground); font-size: 14px; }
.px-reg-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px;
  border-radius: 16px; border: 0; text-decoration: none; cursor: pointer;
  background: linear-gradient(#ffd23f, #f5a30f); color: #3a2400; font-size: 16px; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 14px 26px -12px rgba(245, 163, 15, .95), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(180, 100, 0, .25);
  transition: transform .12s, filter .12s;
  animation: pxRegPulse 2.8s ease-in-out infinite;
}
.px-reg-btn i { font-style: normal; font-size: 20px; transition: transform .15s; }
.px-reg-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.px-reg-btn:hover i { transform: translateX(4px); }
@keyframes pxRegPulse { 0%, 100% { box-shadow: 0 14px 26px -12px rgba(245, 163, 15, .95), 0 0 0 0 rgba(245, 163, 15, .35), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(180,100,0,.25); } 50% { box-shadow: 0 14px 26px -12px rgba(245, 163, 15, .95), 0 0 0 9px rgba(245, 163, 15, 0), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(180,100,0,.25); } }

.px-auth .px-duo.px-open { max-width: 820px; }
.px-duo.px-open .px-login-col { max-width: 820px; }
.px-duo.px-open .px-login-col > .card, .px-duo.px-open .px-login-col > .px-reg-cta, .px-duo.px-open .px-login-col > div:first-child > div { display: none; }
.px-duo.px-open .px-login-col > div:first-child { margin-bottom: -6px; }
.px-duo.px-open .px-login-col > div:first-child img { width: 190px; height: auto; }
.px-duo.px-open .px-news-col { display: none; }
.px-reg-pane { width: 100%; margin-top: 8px; max-width: 820px; animation: pxRegIn .28s cubic-bezier(.2, .9, .25, 1); }
.px-reg-pane[hidden] { display: none; }
@keyframes pxRegIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.px-reg-head { position: relative; margin-bottom: 14px; padding-right: 130px; text-align: left; }
.px-reg-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--foreground); }
.px-reg-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted-foreground); }
.px-reg-close { position: absolute; top: 0; right: 0; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: #1d68c4; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 14px -8px rgba(20, 70, 160, .6); }
.px-reg-close:hover { background: #eaf2fd; }
.px-reg-loading { padding: 40px; text-align: center; color: var(--muted-foreground); }
.px-reg-card { padding: 22px; }

/* all three steps side by side, no stepping */
.px-reg-form { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 26px !important; margin: 0 !important; }
.px-reg-form > * { margin: 0 !important; }
.px-reg-form fieldset { display: block !important; border: 0; margin: 0; padding: 0; min-width: 0; }
.px-reg-form fieldset > * + * { margin-top: 12px; }
.px-reg-form fieldset[data-step="1"] { grid-column: 1; grid-row: 1 / 3; }
.px-reg-form fieldset[data-step="2"] { grid-column: 2; grid-row: 1; }
.px-reg-form fieldset[data-step="3"] { grid-column: 2; grid-row: 2; align-self: end; }
.px-reg-form legend { margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--foreground); }
.px-reg-form [data-step-next], .px-reg-form [data-step-back] { display: none !important; }
.px-reg-form fieldset[data-step="1"] > .flex.gap-3 { display: none; }
.px-reg-form fieldset[data-step="3"] legend, .px-reg-form fieldset[data-step="3"] > .flex.items-center { display: none; }
.px-reg-form fieldset[data-step="3"] > .flex.gap-3 { padding-top: 0; }
.px-reg-form fieldset[data-step="3"] .btn-primary { height: 52px; font-size: 16px; }
.px-reg-form fieldset[data-step="2"] > p { display: none; }

.px-gender { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #eaf2fd; }
.px-gender button { flex: 1; height: 38px; border: 0; border-radius: 11px; background: transparent; color: #4a5a74; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.px-gender button.on { background: #fff; color: #1d68c4; box-shadow: 0 6px 14px -8px rgba(20, 70, 160, .7); }
.px-look-row { display: flex; gap: 14px; align-items: stretch; }
.px-look-prev { flex: none; width: 110px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(#eaf4ff, #d9e8fb); }
.px-look-prev img { max-width: 80px; max-height: 150px; image-rendering: pixelated; }
.px-look-grid { flex: 1; display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; align-content: start; }
.px-look-grid label { border-radius: 12px !important; background: #f4f8ff !important; }

@media (max-width: 1023px) {
  .px-reg-pane { max-width: 440px; margin: 0 auto; }
  .px-reg-form { grid-template-columns: 1fr; }
  .px-reg-form fieldset[data-step="1"], .px-reg-form fieldset[data-step="2"], .px-reg-form fieldset[data-step="3"] { grid-column: 1; grid-row: auto; }
}

.px-look-grid label { aspect-ratio: 3 / 4 !important; }
.px-look-grid label img { padding: 4px !important; }
.px-look-prev { width: 130px; }
.px-look-prev img { max-width: 100px; max-height: 190px; }
/* photo columns behind the page stay clearly visible but soft */
.px-auth .marquee-up, .px-auth .marquee-down { filter: saturate(1.05); }
