@font-face {
  font-family: 'Inter';
  src: local('Inter'),
       url(/assets/font/inter-v18-latin-ext-regular.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: local('Inter Italic'), local('Inter-Italic'),
       url(/assets/font/inter-v18-latin-ext-italic.woff2) format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk Bold'), local('SpaceGrotesk-Bold'),
       url(/assets/font/space-grotesk-v16-latin-ext-700.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Paleta i bazowe zmienne --- */
:root{
  --brand-blue: #006EB7;
  --brand-cyan: #00A6E2;
  --brand-red:  #E44B4B;
  --ink: #E8EDF7;
  --ink-muted: #B8C1D6;
  --surface-dark: rgba(8, 12, 26, .68);
  --border-dark: rgba(255,255,255,.12);
  --focus: rgba(0,166,226,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--ink);
  /* Hero background w stylu strony: zdjęcie + przyciemnienie gradientem */
  background:
    linear-gradient(90deg, rgba(7,12,26,.78) 0%, rgba(7,12,26,.56) 45%, rgba(7,12,26,.30) 100%),
    url("/assets/img/29cb67111a7dda45c5896c1e204666b3-1200x680.jpg") center/cover no-repeat fixed #0a0f1e;
}

.page{
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: 24px;
  align-items: center;
  padding: clamp(16px, 4vw, 40px);
}

/* Logo/wordmark „na tle” w lewym górnym rogu */
.brand{
  position: fixed;
  top: clamp(10px, 3vw, 22px);
  left: clamp(10px, 3vw, 24px);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}
.brand img{
  height: 42px;
  width: auto;
  display: block;
}
.brand .wordmark{
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

/* Sekcja hero (nagłówek po lewej) */
.hero{
  padding-left: clamp(0px, 4vw, 24px);
  padding-right: 12px;
}
.headline{
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: .2px;
  margin: 0 0 16px 0;
  max-width: 18ch;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0,0,0,.35);
}
.headline .accent{
  position: relative;
  display: inline-block;
}
.headline .accent::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-red), #ff6b6b);
  border-radius: 999px;
}
.sub{
  color: var(--ink-muted);
  max-width: 48ch;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

/* Karta logowania po prawej */
.login{
  justify-self: end;
  width: min(92vw, 440px);
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.login h2{
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.textbox{ margin: 14px 0; }
.label{
  display:block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.input-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
  color: var(--ink);
}
.input-wrap svg{ flex: 0 0 18px; opacity: .85; }
.input-wrap input{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
}
.input-wrap:focus-within{
  border-color: rgba(0,166,226,.55);
  box-shadow: 0 0 0 4px var(--focus);
  background: rgba(255,255,255,.10);
}

.btn{
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: linear-gradient(90deg, #7C3AED, #2563EB); /* CTA jak na stronie */
  box-shadow: 0 10px 24px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .05s ease, filter .2s ease, box-shadow .2s ease;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.btn:hover{ filter: brightness(1.04); box-shadow: 0 12px 28px rgba(37,99,235,.45), inset 0 1px 0 rgba(255,255,255,.28); }
.btn:active{ transform: translateY(1px); }

.helper-link{
  display: inline-block;
  margin-top: 10px;
  font-size: .9rem;
  color: #CFE7FF;
  text-decoration: none;
}
.helper-link:hover{ text-decoration: underline; }

.message{
  width: min(92vw, 440px);
  margin: 12px 0 0 auto;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  backdrop-filter: blur(6px) saturate(140%);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.alert{ background: rgba(228,75,75,.14); color: #ffd5d5; border: 1px solid rgba(228,75,75,.35); }
.info{  background: rgba(0,166,226,.12); color: #d7f3ff; border: 1px solid rgba(0,166,226,.35); }

::placeholder{ color: rgba(232,237,247,.75); }
:-ms-input-placeholder{ color: rgba(232,237,247,.75); }
::-ms-input-placeholder{ color: rgba(232,237,247,.75); }

/* RWD — na wąskich ekranach formularz pod tytułem */
@media (max-width: 920px){
  .page{
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
  }
  .hero{ order: 1; text-align: left; }
  .login{ order: 2; justify-self: start; width: min(560px, 100%); }
  .message{ margin-left: 0; }
}