/* css/login.css */
/* Logowanie: zakładki „Hasło” / „Link na e-mail” (radio + :checked, działa bez JS). */
.lgn-title { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.6rem); letter-spacing: -0.01em; }
.lgn-r { position: absolute; opacity: 0; pointer-events: none; }
.lgn-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 20px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); }
.lgn-tabs label { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.lgn-tabs label:hover { color: var(--ink); }
#lgn-pass:checked ~ .lgn-tabs label[for="lgn-pass"],
#lgn-link:checked ~ .lgn-tabs label[for="lgn-link"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
#lgn-pass:focus-visible ~ .lgn-tabs label[for="lgn-pass"],
#lgn-link:focus-visible ~ .lgn-tabs label[for="lgn-link"] { outline: 2px solid var(--blue); outline-offset: 2px; }
.lgn-pane { display: none; }
#lgn-pass:checked ~ .lgn-pane--pass,
#lgn-link:checked ~ .lgn-pane--link { display: block; }
.lgn-confirm { text-align: center; }
.lgn-confirm .btn { margin-top: 18px; }
.lgn-confirm-ico { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: #eef0ff; color: var(--blue); }
.lgn-confirm-ico .ico { width: 24px; height: 24px; }

/* ---------- Logowanie dopasowane do reszty strony ----------
   Karta bez cienia, większy nagłówek, zakładki jak przełącznik netto/brutto, pola bez obramowań, w tle siatka kwadratów. */
.lgn-page { position: relative; isolation: isolate; overflow: hidden; }
.lgn-page .card { position: relative; border-radius: 24px; padding: clamp(28px, 4vw, 44px); box-shadow: none; }
.lgn-title { font-size: clamp(28px, 1.2rem + 1.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.lgn-tabs { gap: 0; padding: 4px; margin-bottom: 24px; border: 0; border-radius: 12px; background: var(--bg-2); }
.lgn-tabs label { height: 40px; border-radius: 9px; font-size: 14px; font-weight: 500; letter-spacing: .2px; }
#lgn-pass:checked ~ .lgn-tabs label[for="lgn-pass"],
#lgn-link:checked ~ .lgn-tabs label[for="lgn-link"] { box-shadow: none; }
.lgn-page .form-row label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lgn-page .form-row input:not([type=checkbox]):not([type=radio]) { min-height: 50px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--bg); }
.lgn-page .form-row input:focus { background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 0 0 6px rgba(42, 60, 255, .12); }
.lgn-page .btn--block { min-height: 50px; margin-top: 8px; }
.lgn-confirm-ico { border-radius: 16px; }

/* Zakładki jak przełącznik w cenniku: biały suwak przesuwa się pod wybraną opcję, formularz wjeżdża. */
.lgn-tabs { position: relative; }
.lgn-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: #fff;
  transition: transform .55s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
#lgn-link:checked ~ .lgn-tabs::before { transform: translateX(100%); }
.lgn-tabs label { position: relative; z-index: 1; transition: color .3s; }
#lgn-pass:checked ~ .lgn-tabs label[for="lgn-pass"],
#lgn-link:checked ~ .lgn-tabs label[for="lgn-link"] { background: transparent; }
#lgn-pass:checked ~ .lgn-pane--pass, #lgn-link:checked ~ .lgn-pane--link { animation: lgn-in .45s var(--ease-out, cubic-bezier(.16, 1, .3, 1)) both; }
@keyframes lgn-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lgn-tabs::before { transition: none; } #lgn-pass:checked ~ .lgn-pane--pass, #lgn-link:checked ~ .lgn-pane--link { animation: none; } }

/* Bez skakania karty: oba formularze w tym samym miejscu siatki — wysokość = wyższy z nich, nieaktywny tylko niewidoczny. */
.lgn { display: grid; grid-template-areas: "tabs" "pane"; }
.lgn-tabs { grid-area: tabs; }
.lgn-pane { grid-area: pane; display: block; visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
#lgn-pass:checked ~ .lgn-pane--pass,
#lgn-link:checked ~ .lgn-pane--link { display: block; visibility: visible; opacity: 1; transition: opacity .25s; }

/* Odstępy pod tytułem i nad polem e-mail (dawniej inline w szablonie) — z systemu tokenów site.css. */
.lgn-lead { margin: var(--heading-to-lead) 0 var(--lead-to-action); }
.lgn-note { margin-bottom: var(--sp-4); }

/* Aktywacja konta (front/activate.html.twig): ilustracja i kroki po lewej, formularz po prawej. */
.act-card { display: grid; max-width: 920px; margin-inline: auto; border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 820px) { .act-card { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }
.act-card--single { max-width: 520px; display: grid; justify-items: start; gap: 12px; padding: clamp(24px, 4vw, 40px); }
.act-side { display: grid; align-content: center; gap: 22px; padding: clamp(24px, 4vw, 40px); background: linear-gradient(160deg, #f6f7ff, #eceefe); }
.act-art { max-width: 340px; width: 100%; margin-inline: auto; }
.act-art--sm { max-width: 220px; margin: 0; }
.act-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.act-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.act-steps li > b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 650; box-shadow: inset 0 0 0 1px var(--line); }
.act-steps li.is-now > b { background: var(--blue); color: #fff; box-shadow: none; }
.act-steps li.is-now { color: var(--ink); font-weight: 600; }
.act-form { padding: clamp(24px, 4vw, 44px); display: grid; align-content: center; }
.act-h { margin: 6px 0 0; font-size: clamp(26px, 20px + 1.2vw, 32px); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.act-lead { margin: 10px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.act-hint { display: flex; align-items: center; gap: 8px; margin: -4px 0 18px; font-size: 13px; color: var(--muted); }
.act-hint .ico { width: 15px; height: 15px; flex: none; }
.act .btn--block { justify-content: center; gap: 10px; }
@media (max-width: 819px) { .act-side { padding-bottom: 18px; } .act-art { max-width: 260px; } }

/* „Sprawdź pocztę” po wysłaniu linku logującego (front/login_sent.html.twig). */
.lgn-spam { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: #f6f7ff; box-shadow: inset 0 0 0 1px #e3e6ff; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.lgn-spam p { margin: 0; }
.lgn-spam-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; font-weight: 600; color: var(--ink); }
.lgn-spam-h .ico { width: 16px; height: 16px; flex: none; color: var(--blue); }
.lgn-sent-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.lgn-sent-links a { color: var(--ink-2); }

/* Strona z linku w mailu (front/login_link.html.twig): ilustracja nad przyciskiem. */
.lgn-confirm .act-art { max-width: 240px; margin: 0 auto 6px; }

