/* ===================================================================
   redesign.css — wspólne reguły layoutu redesignu (DRY).
   Źródło: przeniesione VERBATIM z inline <style> login.html.
   Konsumenci: base_redesign.html (login/pending/booking/unsubscribe)
   oraz landing.html (footer + light-nav tokeny).

   Layout sticky-footer (body flex column) jest scope'owany do
   .redesign-body (klasa na <body> w base_redesign.html), żeby NIE
   wyciekał do landing.html, którego <body class="lp-body lp-design">
   ma własny model layoutu. Pozostałe reguły są globalne lub
   nadpisywane przez .lp-body/.lp-design (wyższa specyficzność).
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:      #5a2fa8;
  --color-primary-dark: #3a1d72;
  --color-accent-text:  #7c4db5;
  --color-accent:       #e30e7d;
  --color-border:       #e2e0e8;
  --color-border-focus: #8b5cf6;
  --color-text:         #1a1a2e;
  --color-text-muted:   #6b6b80;
  --color-bg:           #ffffff;
  --color-bg-light:     #f7f5ff;
  --color-bg-page:      #f0edf8;
  --color-success:      #22c55e;
  --color-error:        #dc2626;
  --color-error-bg:     #fef2f2;
  --color-error-border: #fecaca;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.25s;
  --duration-slow: 0.4s;
}

html { scroll-behavior: smooth; }

.redesign-body {
  font-family: Inter, sans-serif;
  color: var(--color-text);
  background: var(--color-bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-light); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 99px; }
* { scrollbar-width: thin; scrollbar-color: var(--color-primary) var(--color-bg-light); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── LIGHT NAV ── */
.light-nav {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.light-nav__inner {
  max-width: 1780px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.light-nav__logo img { display: block; height: 32px; width: auto; }

.light-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.light-nav__menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.light-nav__menu a:hover { color: var(--color-primary); }

.light-nav__cta {
  padding: 8px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  background: var(--color-bg-light);
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out) !important;
}

.light-nav__cta:hover { border-color: var(--color-primary) !important; background: #ede8f8 !important; }

.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.hamburger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  align-items: center; justify-content: center;
  cursor: pointer; flex-direction: column; gap: 4px;
}

.hamburger span, .hamburger::before, .hamburger::after {
  content: ""; display: block;
  width: 16px; height: 2px; border-radius: 999px;
  background: var(--color-text-muted);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle:checked + .hamburger span { opacity: 0; }
.nav-toggle:checked + .hamburger::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked + .hamburger::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
  .light-nav__menu {
    display: none;
    position: absolute; top: 65px; left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px; z-index: 50;
  }
  .light-nav__menu a { padding: 11px 0; border-bottom: 1px solid var(--color-border); }
  .light-nav__menu a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .nav-toggle:checked ~ .light-nav__menu { display: flex; }
  .light-nav { position: relative; }
}

/* ── BUTTONS ── */
.btn-primary {
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0) 65%),
    linear-gradient(135deg, rgb(90,47,168) 0%, rgb(66,28,128) 55%, rgb(45,20,102) 100%);
  transition: filter var(--duration-fast) var(--ease-out);
  margin-top: 4px;
}

.btn-primary:hover { filter: brightness(1.1); }

/* ── GOOGLE BUTTON ── */
.btn-google {
  width: 100%;
  padding: 12px 24px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.btn-google:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-light);
}

/* ── FOOTER ── */
.site-footer-new {
  width: 100%; padding: 64px 40px;
  background-image:
    radial-gradient(circle at 13% 26%, rgba(83, 29, 168, 0.55), transparent 24rem),
    radial-gradient(circle 50vw at 110% -10vw, rgba(62, 21, 122, 0.45), transparent 65%),
    radial-gradient(circle 50vw at -10vw 110%, rgba(90, 31, 168, 0.45), transparent 65%),
    linear-gradient(180deg, #2B1658 0%, #551C74 100%);
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-footer-new::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
}

.site-footer-new::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(184,143,255,0.85) 1.8px, transparent 1.8px);
  background-size: 15px 15px;
  opacity: 0.04;
  mask-image:
    radial-gradient(circle 90px at calc(100% - 121px) 110px, #000 35%, transparent 100%),
    radial-gradient(circle 90px at 90px calc(100% - 97px), #000 35%, transparent 100%);
  -webkit-mask-image:
    radial-gradient(circle 90px at calc(100% - 121px) 110px, #000 35%, transparent 100%),
    radial-gradient(circle 90px at 90px calc(100% - 97px), #000 35%, transparent 100%);
}

.site-footer-new__inner { max-width: 1780px; margin: 0 auto; }
.site-footer-new__bottom { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.site-footer-new__bottom-logo { display: inline-block; margin-bottom: 20px; }
.site-footer-new__bottom-logo img { display: block; height: auto; width: 120px; }
.site-footer-new__bottom-desc { margin: 0; font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.site-footer-new__bottom-heading { margin: 0 0 20px; font-size: 1rem; font-weight: 500; color: #fff; letter-spacing: 0.04em; }
.site-footer-new__bottom-dane,
.site-footer-new__bottom-kontakt { display: flex; flex-direction: column; gap: 10px; }
.site-footer-new__bottom-dane p,
.site-footer-new__bottom-kontakt p { margin: 0; font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.site-footer-new__bottom-dane strong,
.site-footer-new__bottom-kontakt strong { color: #fff; font-weight: 600; }
.site-footer-new__bottom-kontakt a { color: inherit; text-decoration: none; transition: color 140ms ease; }
.site-footer-new__bottom-kontakt a:hover { color: #fff; }
.site-footer-new__bottom-kontakt p { line-height: 2.2; }
.site-footer-new__social { display: flex; gap: 20px; list-style: none; margin: 24px 0 0; padding: 0; }
.site-footer-new__social-link { display: inline-flex; align-items: center; color: rgba(255,255,255,0.7); transition: color 140ms ease; }
.site-footer-new__social-link:hover { color: #fff; }
.site-footer-new__bar { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.site-footer-new__bar-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
.site-footer-new__bar-link { font-size: 0.8125rem; color: rgba(255,255,255,0.8); text-decoration: none; transition: color 140ms ease; }
.site-footer-new__bar-link:hover { color: #fff; }

@media (max-width: 1024px) {
  .site-footer-new { padding: 48px 24px; }
  .site-footer-new__bottom { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .site-footer-new__bottom-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-footer-new { padding: 40px 20px; }
  .site-footer-new__bottom { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-new__bar-list { flex-direction: column; gap: 12px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   AUTH CARD — wspólny komponent wyśrodkowanej karty na jasnym tle.
   Używany przez: login.html, pending.html, unsubscribe.html, report_verify.html.
   Zawiera TYLKO strukturę + spacing. Page-specific (tło ikony, fade-in,
   warianty --question/--done, formularze) pozostają w bloku extra_css strony.
   ────────────────────────────────────────────────────────────────────────── */

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 64px) 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.auth-card__body {
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.auth-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.auth-card__icon img { width: 26px; height: 26px; }
.auth-card__icon svg { width: 24px; height: 24px; }

.auth-card__title {
  font-family: Montserrat, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.auth-card__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 340px;
}

.auth-card__footer {
  padding: 14px 36px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-card__footer img {
  height: 18px;
  width: auto;
  opacity: 0.35;
  filter: grayscale(1);
}

.auth-card__footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.auth-card__footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.auth-card__footer-links a:hover { color: var(--color-primary); }

.auth-card__footer-sep { color: var(--color-border); }
