/* Take Profit Crew — ekran logowania (v7, 14.11): prosty — tło „recepcja biura” z podświetlonym szyldem TPC + kanciasta karta
   z jednym przyciskiem Discord (na razie tylko wygląd). W miejscu .biuro pojawi się później animacja. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.ekran-logowania {
  --zloto: #c9a96e; --zloto-j: #e6d3ac; --zloto-c: #a8854c; --tekst: #ece7dd; --tekst2: #a39f97; --tekst3: #6f6c66; --obrys: rgba(255, 255, 255, .1);
  --font-tytul: "Montserrat", system-ui, sans-serif; --font: "Inter", system-ui, sans-serif;
  min-height: 100vh; min-height: 100dvh; background: #0b0c0e; color: var(--tekst); font: 14px/1.5 var(--font); overflow-x: hidden;
}
body.ekran-logowania *:not(img) { font-style: normal; }

/* ---------- tło: ściana z lameli, spoty z sufitu, podłoga z odbiciem ---------- */
.biuro { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0b0c0e; }
.biuro-sciana { position: absolute; left: 0; right: 0; top: 0; height: 74%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 18%, transparent 70%, rgba(0, 0, 0, .5) 100%),
    repeating-linear-gradient(90deg, #17181b 0 38px, #121315 38px 41px, #1a1b1e 41px 42px),
    #151618; }
.biuro-sciana::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(201, 169, 110, .35), transparent); }
.biuro-spoty i { position: absolute; top: -40px; width: 340px; height: 78%; transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 214, 160, .16), rgba(255, 214, 160, .05) 45%, transparent 75%); filter: blur(2px); }
.biuro-spoty i:nth-child(1) { left: 18%; }
.biuro-spoty i:nth-child(2) { left: 50%; width: 520px; background: radial-gradient(50% 100% at 50% 0%, rgba(255, 220, 170, .22), rgba(255, 214, 160, .07) 45%, transparent 75%); }
.biuro-spoty i:nth-child(3) { left: 82%; }
.biuro-spoty::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent); }
.biuro-podloga { position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: radial-gradient(60% 90% at 50% 0%, rgba(201, 169, 110, .1), transparent 70%), linear-gradient(180deg, #121316 0%, #0a0b0c 100%); }
.biuro::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .65) 100%); pointer-events: none; }

/* ---------- układ ---------- */
.lg { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(28px, 5vh, 56px); padding: 40px 16px; }

/* szyld na ścianie: korona z poświatą od tyłu + napis z „metalu” */
.szyld { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.szyld-korona { position: relative; }
.szyld-korona::before { content: ""; position: absolute; inset: -40% -60%; background: radial-gradient(closest-side, rgba(255, 210, 140, .28), transparent 70%); filter: blur(6px); }
.szyld-korona img { position: relative; display: block; width: clamp(96px, 11vw, 140px); height: auto;
  filter: drop-shadow(0 0 18px rgba(255, 210, 140, .35)) drop-shadow(0 10px 24px rgba(0, 0, 0, .6)); }
.szyld-napis { font: 800 clamp(20px, 2.6vw, 34px)/1 var(--font-tytul); letter-spacing: .3em; padding-left: .3em;
  background: linear-gradient(180deg, #f6ead2 0%, #d8bd88 45%, #a8854c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 210, 140, .22)) drop-shadow(0 2px 2px rgba(0, 0, 0, .6)); }

/* ---------- karta (kanciasta) ---------- */
.lg-karta { position: relative; width: min(400px, 100%); padding: 30px 30px 22px; background: rgba(16, 17, 20, .82); border: 1px solid var(--obrys);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); border-radius: 3px;
  animation: lg-wejscie .6s cubic-bezier(.2, .8, .2, 1) both; }
.lg-karta::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--zloto) 30%, var(--zloto-j) 50%, var(--zloto) 70%, transparent); }
@keyframes lg-wejscie { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lg-karta h1 { margin: 0 0 6px; font: 800 24px var(--font-tytul); letter-spacing: -.01em; color: var(--tekst); }
.lg-opis { margin: 0 0 22px; color: var(--tekst2); font-size: 13.5px; }

  background: #5865f2; color: #fff; font: 700 13px var(--font-tytul); letter-spacing: .1em; text-transform: uppercase; transition: background .15s, transform .15s; }
.lg-info { margin: 12px 0 0; padding: 9px 12px; font-size: 12.5px; color: var(--zloto-j); background: rgba(201, 169, 110, .08); border: 1px solid rgba(201, 169, 110, .25); border-radius: 3px; text-align: center; }
.lg-info[hidden] { display: none; }

/* logowanie testowe (ukryte, ?tester) */
.lg-form[hidden], .lg-zakladki[hidden] { display: none; }
.lg-albo { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font: 600 10.5px var(--font-tytul); letter-spacing: .16em; text-transform: uppercase; color: var(--tekst3); }
.lg-albo::before, .lg-albo::after { content: ""; flex: 1; height: 1px; background: var(--obrys); }
.lg-pole { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.lg-pole > span { font: 700 10.5px var(--font-tytul); text-transform: uppercase; letter-spacing: .14em; color: var(--tekst3); }
.lg-pole input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--obrys); border-radius: 3px; background: #0f1115; color: var(--tekst); font: 500 14.5px var(--font); color-scheme: dark; }
.lg-pole input:focus { outline: none; border-color: var(--zloto); box-shadow: 0 0 0 3px rgba(201, 169, 110, .16); }
.lg-blad { margin: 0 0 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; color: #ff9a8f; background: rgba(229, 72, 77, .1); border: 1px solid rgba(229, 72, 77, .25); border-radius: 3px; }
.lg-blad[hidden] { display: none; }
.lg-wyslij { position: relative; width: 100%; height: 46px; border: 0; border-radius: 3px; cursor: pointer; font: 800 12.5px var(--font-tytul); letter-spacing: .16em; text-transform: uppercase;
  color: #15161a; background: linear-gradient(180deg, #dcc08a, #b08d50); }
.lg-wyslij.laduje { color: transparent; pointer-events: none; }
.lg-wyslij.laduje::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(21, 22, 26, .25); border-top-color: #15161a; animation: obrot .7s linear infinite; }
@keyframes obrot { to { transform: rotate(360deg); } }

.lg-stopka { margin: 20px 0 0; text-align: center; font: 600 10.5px var(--font-tytul); letter-spacing: .2em; text-transform: uppercase; color: var(--tekst3); }
body.wchodzi .lg-karta { transition: opacity .35s, transform .35s; opacity: 0; transform: translateY(-10px); }

@media (max-width: 760px) {
  .lg { justify-content: flex-start; padding-top: 12vh; gap: 34px; }
  .szyld-napis { font-size: 18px; letter-spacing: .24em; }
  .lg-karta { padding: 24px 20px 18px; }
  .biuro-sciana { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 18%, transparent 70%, rgba(0, 0, 0, .5) 100%),
    repeating-linear-gradient(90deg, #17181b 0 26px, #121315 26px 28px, #1a1b1e 28px 29px), #151618; }
  .biuro-spoty i:nth-child(1), .biuro-spoty i:nth-child(3) { display: none; }
}
/* 18.11: ostrzeżenie o ryzyku pod kartą logowania */
.lg-ryzyko { margin: 10px 0 0; font-size: 10.5px; line-height: 1.5; text-align: center; opacity: .5; }

/* ---- v9 (20.11): jeden ekran — logowanie / nowe konto e-mailem ---- */
.lg-zakladki { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 24px; background: #0c0d10; border: 1px solid var(--obrys); border-radius: 4px; }
.lg-zakladki button { height: 38px; border: 0; border-radius: 3px; background: transparent; color: var(--tekst3); cursor: pointer;
  font: 700 11px var(--font-tytul); letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s; }
.lg-zakladki button:hover { color: var(--tekst); }
.lg-zakladki button.aktywna { background: linear-gradient(180deg, rgba(220, 192, 138, .18), rgba(176, 141, 80, .1)); color: var(--zloto-j); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .35); }
.lg-pole > span em { font-style: normal; font-weight: 600; letter-spacing: .06em; text-transform: none; color: var(--tekst3); opacity: .75; margin-left: 6px; }
.lg-haslo { position: relative; display: block; }
.lg-haslo input { padding-right: 48px; }
.lg-oko { position: absolute; right: 2px; top: 2px; bottom: 2px; width: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--tekst3); cursor: pointer; border-radius: 3px; }
.lg-oko:hover, .lg-oko:focus-visible { color: var(--zloto-j); outline: none; }
.lg-oko svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-oko .o-zam { display: none; }
.lg-oko.jawne .o-zam { display: inline; }
.lg-oko.jawne .o-otw { display: none; }
.lg-podpowiedz { min-height: 15px; font-size: 11.5px; color: var(--tekst3); }
.lg-podpowiedz.ok { color: #7fc79a; }
.lg-podpowiedz.zle { color: #ff9a8f; }
.lg-uwaga { margin: 4px 0 14px; padding: 11px 13px; font-size: 12.5px; line-height: 1.55; color: var(--tekst2); background: rgba(201, 169, 110, .07); border: 1px solid rgba(201, 169, 110, .22); border-left: 3px solid var(--zloto); border-radius: 3px; }
.lg-uwaga b { color: var(--tekst); font-weight: 700; }
.lg-adres { font-weight: 700; color: var(--zloto-j); white-space: nowrap; }
.lg-info { text-align: left; margin: 0 0 14px; line-height: 1.5; }
.lg-link { display: block; width: 100%; margin: 0 0 12px; padding: 4px; border: 0; background: none; cursor: pointer; text-align: center;
  font: 600 12.5px var(--font); color: var(--zloto-j); text-decoration: underline; text-underline-offset: 3px; }
.lg-link[hidden] { display: none; }
.lg-link:disabled { opacity: .5; cursor: default; }
.lg-wyslij:disabled { opacity: .55; cursor: default; }
.lg-drugi { margin-bottom: 10px; color: var(--zloto-j); background: transparent; box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .45); }
.lg-drugi.laduje::after { border-color: rgba(201, 169, 110, .25); border-top-color: var(--zloto-j); }
.lg-wyslano { text-align: center; }
.lg-wyslano .lg-uwaga { text-align: left; }
.lg-wyslano .lg-opis b { color: var(--tekst); word-break: break-all; }
.lg-koperta { width: 58px; height: 58px; margin: 2px auto 14px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(220, 192, 138, .25), rgba(176, 141, 80, .08)); box-shadow: inset 0 0 0 1px rgba(201, 169, 110, .4); }
.lg-koperta svg { width: 28px; height: 28px; fill: none; stroke: var(--zloto-j); stroke-width: 1.7; stroke-linejoin: round; }
@media (max-width: 760px) {
  .lg-pole input { font-size: 16px; }
  .lg { padding-top: 7vh; gap: 26px; }
}
/* v11 (20.11): „Nie pamiętasz hasła?” */
.lg-zapomnialem { display: block; margin: -4px 0 12px auto; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font: 600 12px var(--font); color: var(--zloto-j); opacity: .85; }
.lg-zapomnialem:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
