/* Logowanie, rejestracja, zaproszenie: ten sam wygląd co aplikacja i strona główna (film „Dashboard V14”).
   Jasny motyw domyślnie, ciemny po kliknięciu księżyca (wspólny zapis z aplikacją), pigułki, białe karty, czarna pigułka jako główny przycisk,
   koralowa karta z gradientem po prawej. CSP bez unsafe-inline: żadnych stylów w HTML. */
:root {
  --coral: #FF624D; --peach: #FFD8CA;
  --bg: #F5F5F7; --card: #FFFFFF; --card-2: #F4F4F6; --chip: #F1F1F4; --line: #ECECEF; --line-2: #E1E1E6;
  --ink: #111318; --ink-2: #4A4C55; --ink-3: #8D8F98;
  --pill: #111318; --pill-ink: #FFFFFF; --pill-hover: #2A2D35;
  --soft: #FFEDE6; --soft-ink: #7A2414; --stop: #DC3B3B;
  --hot: linear-gradient(135deg, #FF9A72 0%, #FF6A4A 42%, #EC4A2E 100%);
  --shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 10px 30px -18px rgba(17, 19, 24, .18);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0B0D; --card: #141417; --card-2: #1B1B1F; --chip: #1D1D21; --line: #1F1F24; --line-2: #2A2A30;
  --ink: #F5F5F7; --ink-2: #C3C3CA; --ink-3: #85858F;
  --pill: #F5F5F7; --pill-ink: #0B0B0D; --pill-hover: #DCDCE0;
  --soft: #2A1A16; --soft-ink: #FFD8CA; --stop: #F27064;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 30px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 10px; }

.atop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 3vw, 32px) 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px 0 8px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; }
.logo .mark { width: 34px; height: 34px; border-radius: 50%; }
.logo .dk, .logo .lt { height: 22px; width: auto; }
.logo .lt, [data-theme="dark"] .logo .dk { display: none; }
[data-theme="dark"] .logo .lt { display: block; }
.theme { display: flex; gap: 2px; height: 50px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.theme button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--chip); color: var(--ink); }

.auth { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 18px clamp(16px, 3vw, 32px) clamp(16px, 3vw, 32px); width: min(1240px, 100%); margin-inline: auto; align-items: stretch; }
.panel { padding: clamp(28px, 5vw, 60px); background: var(--card); border-radius: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.panel > * { width: min(100%, 440px); }
h1 { font: 600 clamp(2rem, 3.6vw, 2.6rem)/1.08 "Inter", sans-serif; letter-spacing: -0.04em; margin: 0; }
.lead { color: var(--ink-3); margin: 10px 0 26px; font-size: 1.05rem; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-weight: 500; font-size: .92rem; color: var(--ink-2); }
input { font: inherit; font-weight: 400; color: var(--ink); background: var(--card-2); border: 1.5px solid transparent; border-radius: 999px; padding: 14px 20px; width: 100%;
  transition: border-color 160ms, background-color 160ms, box-shadow 160ms; }
input::placeholder { color: var(--ink-3); }
input:hover { background: var(--chip); }
input:focus-visible { outline: none; border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 4px var(--soft); }
input[aria-invalid="true"] { border-color: var(--stop); }
.pw { position: relative; display: block; }
.pw input { padding-right: 92px; }
.ghost { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--card); border: 0; font: inherit; font-weight: 600; font-size: .85rem; color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); }
.ghost:hover { background: var(--chip); }
small { font-weight: 400; color: var(--ink-3); font-size: .86rem; padding-left: 6px; }
.msg { background: var(--soft); color: var(--soft-ink); border-radius: 18px; padding: 12px 16px; margin: 0; font-weight: 500; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--pill); color: var(--pill-ink); font: inherit; font-weight: 600; font-size: 1.02rem; padding: 16px 24px; border: 0;
  border-radius: 999px; cursor: pointer; margin-top: 4px; transition: background-color 150ms, transform 160ms var(--ease); }
.btn:hover { background: var(--pill-hover); } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .55; cursor: default; }
.switch { margin: 22px 0 0; color: var(--ink-3); text-align: center; }
.switch a { color: var(--ink); font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.forgot { margin: 14px 0 0; text-align: center; }
.linkbtn { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: .93rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.linkbtn:hover { color: var(--ink); }
.sent { display: grid; justify-items: center; gap: 14px; text-align: center; }
.sent img { width: 120px; height: 120px; object-fit: contain; }
.sent p { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; overflow-wrap: anywhere; }
.btn.quiet { background: var(--card-2); color: var(--ink); }
.btn.quiet:hover { background: var(--chip); }
code { font: 500 .88em ui-monospace, Menlo, Consolas, monospace; background: var(--chip); padding: 1px 7px; border-radius: 8px; }
.fine { color: var(--ink-3); font-size: .86rem; margin: 26px 0 0; text-align: center; }

.side { display: grid; grid-template-rows: 1fr auto; gap: 18px; min-width: 0; }
.hot { position: relative; overflow: hidden; border-radius: 28px; background: var(--hot); color: #fff; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; min-height: 420px;
  box-shadow: 0 40px 70px -40px rgba(236, 74, 46, .8); }
.hot::after { content: ""; position: absolute; right: -20%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .22); filter: blur(40px); pointer-events: none; }
.hot-t { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .88); position: relative; z-index: 1; }
.hot-b { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-weight: 600; color: #fff; }
.hot-h { font: 600 clamp(1.7rem, 3vw, 2.5rem)/1.08 "Inter", sans-serif; letter-spacing: -0.035em; max-width: 14ch; margin: 22px 0 0; position: relative; z-index: 1; }
.hot img { width: min(300px, 62%); margin: auto -10px -40px auto; position: relative; z-index: 1; }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.minis div { padding: 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); display: grid; gap: 4px; }
.minis b { font-weight: 600; font-size: .98rem; }
.minis span { color: var(--ink-3); font-size: .84rem; line-height: 1.4; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .atop > *, .panel > *, .hot, .minis div { animation: blurin 760ms var(--ease) backwards; }
  .panel > :nth-child(2) { animation-delay: 70ms; } .panel > :nth-child(3) { animation-delay: 140ms; } .panel > :nth-child(n+4) { animation-delay: 210ms; }
  .hot { animation-delay: 120ms; } .minis div:nth-child(1) { animation-delay: 260ms; } .minis div:nth-child(2) { animation-delay: 320ms; } .minis div:nth-child(3) { animation-delay: 380ms; }
}
@keyframes blurin { from { opacity: 0; filter: blur(12px); transform: translateY(10px); } }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .side { display: none; }
  .panel { justify-content: flex-start; padding: 32px 22px; }
}
@media (max-width: 520px) {
  .atop { padding-top: 12px; }
  .logo { height: 44px; } .theme { height: 44px; padding: 2px; }
  .auth { padding: 12px; }
  .panel { border-radius: 24px; }
}
.lead:empty { display: none; } .lead:empty + form, .lead:empty ~ .sent { margin-top: 22px; }
.adres { padding-left: 20px; }
.adres b { color: var(--ink); font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; padding: 0; accent-color: var(--coral); }
.check a { color: var(--ink); font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fine a { color: var(--ink-2); font-weight: 600; }
