/* GOLIAT - ekran logowania (jasny): poranek nad portem, biala karta i kontenerowiec plynacy po horyzoncie */
:root { --sky0: #f7faff; --sky1: #e4edff; --ink: #0f172a; --mute: #5b6b86; --ac: #4f46e5; --ac2: #6d5ef0; --line: #dbe3f3; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.lg-body { margin: 0; min-height: 100vh; min-height: 100svh; color: var(--ink); overflow-x: hidden; position: relative;
  background: radial-gradient(820px 460px at 82% -6%, rgba(255, 214, 140, .55), transparent 62%), radial-gradient(900px 560px at 6% 8%, rgba(129, 160, 255, .28), transparent 62%), linear-gradient(180deg, var(--sky1) 0%, var(--sky0) 58%, #fff 100%);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* --- niebo: slonce i dryfujace chmury --- */
.lg-sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lg-sun { position: absolute; top: 7%; right: 10%; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fff7dc 0, #ffe29a 60%, #ffd16b 100%); box-shadow: 0 0 70px 26px rgba(255, 207, 120, .45), 0 0 180px 80px rgba(255, 207, 120, .22); animation: lg-glow 7s ease-in-out infinite; }
.lg-cloud { position: absolute; left: 0; top: var(--y); width: var(--w); height: calc(var(--w) * .26); border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px rgba(120, 150, 210, .18); opacity: var(--o); transform: translateX(-40vw); animation: lg-drift var(--t) linear infinite; animation-delay: var(--dl); }
.lg-cloud::before, .lg-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.lg-cloud::before { width: 42%; height: 150%; left: 14%; top: -62%; }
.lg-cloud::after { width: 32%; height: 120%; left: 50%; top: -42%; }
@keyframes lg-drift { from { transform: translateX(-40vw); } to { transform: translateX(120vw); } }
@keyframes lg-glow { 0%, 100% { box-shadow: 0 0 70px 26px rgba(255, 207, 120, .45), 0 0 180px 80px rgba(255, 207, 120, .22); } 50% { box-shadow: 0 0 84px 34px rgba(255, 207, 120, .55), 0 0 200px 90px rgba(255, 207, 120, .28); } }

/* --- morze i statek --- */
.lg-scene { position: fixed; left: 0; right: 0; bottom: 0; height: 30vh; min-height: 190px; pointer-events: none; }
.lg-wave { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; }
.lg-wave-b { height: 58%; opacity: .75; background-size: 600px 100%; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='120' viewBox='0 0 600 120' preserveAspectRatio='none'><path d='M0 60 Q150 22 300 60 T600 60 V120 H0z' fill='%23b9cdf5'/></svg>"); animation: lg-flow 38s linear infinite; }
.lg-wave-f { height: 36%; background-size: 480px 100%; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='120' viewBox='0 0 480 120' preserveAspectRatio='none'><path d='M0 50 Q120 12 240 50 T480 50 V120 H0z' fill='%238aa9e6'/></svg>"); animation: lg-flow 24s linear infinite reverse; z-index: 3; }
.lg-ship { position: absolute; bottom: 24%; left: 0; width: min(560px, 78vw); z-index: 2; transform: translateX(-120%); animation: lg-sail 95s linear infinite; animation-delay: -28s; filter: drop-shadow(0 8px 14px rgba(40, 70, 140, .22)); }
.lg-ship svg { display: block; width: 100%; height: auto; animation: lg-bob 6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes lg-flow { from { background-position-x: 0; } to { background-position-x: 600px; } }
@keyframes lg-sail { from { transform: translateX(-120%); } to { transform: translateX(calc(100vw + 20%)); } }
@keyframes lg-bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-5px) rotate(.6deg); } }

/* --- karta --- */
.lg-stage { position: relative; z-index: 5; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px 40px; }
.lg-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lg-brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(79, 70, 229, .15); background: #fff; }
.lg-brand strong { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .24em; color: var(--ac); line-height: 1.1; }
.lg-brand span span { display: block; font-size: 1.15rem; font-weight: 650; color: var(--ink); line-height: 1.2; }
.lg-card { width: min(92vw, 410px); padding: 30px 28px 26px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); box-shadow: 0 30px 70px -24px rgba(48, 70, 140, .38), 0 2px 6px rgba(48, 70, 140, .08), inset 0 1px 0 #fff; animation: lg-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lg-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.lg-card h1 { margin: 0 0 4px; font-size: 1.65rem; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.lg-sub { margin: 0 0 22px; color: var(--mute); font-size: .95rem; }
.lg-plate { display: inline-block; margin-bottom: 14px; padding: 3px 10px; border: 1px solid #c7d2fe; border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ac); background: #eef2ff; }
.lg-form { display: grid; gap: 15px; }
.lg-field { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: #3b4a66; }
.lg-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; transition: border-color .15s ease, box-shadow .15s ease; }
.lg-field input::placeholder { color: #9aa8c2; }
.lg-field input:hover { border-color: #b7c4e3; }
.lg-field input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 4px rgba(79, 70, 229, .16); }
.lg-pw { position: relative; display: block; }
.lg-pw input { padding-right: 78px; }
.lg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 5px 10px; border: 0; border-radius: 8px; background: #eef2ff; color: var(--ac); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.lg-eye:hover { background: #e0e7ff; }
.lg-check { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--mute); cursor: pointer; }
.lg-check input { width: 16px; height: 16px; accent-color: var(--ac); }
.lg-btn { margin-top: 4px; padding: 13px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #4f46e5, #6d5ef0); color: #fff; font: inherit; font-size: 1rem; font-weight: 650; letter-spacing: .01em; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .65), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.lg-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 30px -8px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.lg-btn:active { transform: none; }
.lg-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.lg-link { padding: 0; border: 0; background: none; color: var(--ac); font: inherit; font-size: .85rem; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lg-link:hover { color: #3730a3; }
.lg-error { padding: 11px 13px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: .86rem; }
.lg-foot { max-width: 410px; margin: 18px 0 0; text-align: center; font-size: .76rem; line-height: 1.5; color: #6b7a96; }
.lg-help { margin-top: 6px; }
.lg-foot a { color: var(--ac); text-decoration: none; }
.lg-foot a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
@media (max-width: 520px) { .lg-card { padding: 24px 20px 22px; } .lg-sun { width: 60px; height: 60px; top: 5%; right: 7%; } .lg-scene { height: 24vh; min-height: 150px; } }
@media (prefers-reduced-motion: reduce) { .lg-card, .lg-wave-b, .lg-wave-f, .lg-ship, .lg-ship svg, .lg-sun, .lg-cloud { animation: none !important; } .lg-ship { transform: translateX(18vw); } .lg-cloud { transform: translateX(var(--x, 10vw)); } }

/* goliat-33: atrybut hidden musi wygrywac z display:grid (klucz odzyskiwania byl domyslnie widoczny) */
.lg-field[hidden], .lg-link[hidden] { display: none !important; }

/* --- goliat-44: wlasne logo na logowaniu - z ramka i odstepem, bez ciecia --- */
.lg-brand .lg-logo { display: inline-flex; align-items: center; justify-content: center; height: 56px; width: 56px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 4px 12px rgba(79, 70, 229, .15); flex: 0 0 auto; }
.lg-brand .lg-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0; box-shadow: none; background: transparent; }
.lg-brand .lg-logo.is-wide { width: 150px; }
