/* Logowanie i rejestracja · „okienko pocztowe". */

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow-x: clip;
}

.auth-naglowek {
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 1.12rem;
  text-decoration: none;
}

.logo-znak {
  width: 30px;
  height: 30px;
  color: var(--polecony);
}

.logo-znak text {
  fill: currentColor;
  font-family: var(--sans);
}

.auth-scena {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 1rem 1.25rem 4rem;
}

.okienko {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 2.1rem 2rem 1.8rem;
  background: #fff;
  border: 1px solid var(--linia-2);
  border-radius: var(--r-l);
  box-shadow: var(--cien-2);
}

.okienko h1 {
  margin-top: 0.5rem;
  font-size: 1.85rem;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.okienko-demo {
  margin-top: 1rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  color: var(--priorytet-ciemny);
  background: var(--priorytet-tlo);
  border: 1px solid color-mix(in srgb, var(--priorytet) 30%, transparent);
  border-radius: var(--r-m);
}

.pole {
  margin-top: 1.25rem;
}

.pole label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--stempel);
}

.pole input {
  width: 100%;
  padding: 0.72em 0.9em;
  font: inherit;
  color: var(--atrament);
  background: var(--papier);
  border: 1.5px solid var(--linia-2);
  border-radius: var(--r-m);
  transition: border-color var(--przejscie), box-shadow var(--przejscie);
}

.pole input:focus {
  outline: none;
  border-color: var(--priorytet);
  box-shadow: 0 0 0 3px var(--priorytet-tlo);
}

.pole-adres {
  display: flex;
  align-items: stretch;
}

.pole-adres input {
  flex: 1;
  min-width: 0;
  border-radius: var(--r-m) 0 0 var(--r-m);
}

.pole-adres span {
  display: flex;
  align-items: center;
  padding-inline: 0.8em;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--atrament-2);
  background: var(--koperta-tlo);
  border: 1.5px solid var(--linia-2);
  border-left: 0;
  border-radius: 0 var(--r-m) var(--r-m) 0;
  white-space: nowrap;
}

.pole-opis {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--stempel);
}

.pole-opis b {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--atrament-2);
}

.okienko-blad {
  margin-top: 1.1rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  color: var(--polecony-ciemny);
  background: var(--polecony-tlo);
  border: 1px solid color-mix(in srgb, var(--polecony) 35%, transparent);
  border-radius: var(--r-m);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.78em 1.4em;
  font-weight: 640;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--r-m);
  cursor: pointer;
  transition: transform var(--przejscie), background var(--przejscie), opacity var(--przejscie);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.btn-atrament {
  background: var(--atrament);
  color: var(--papier);
}

.btn-polecony {
  background: var(--polecony);
  color: #fff;
}

.btn-polecony:hover {
  background: var(--polecony-ciemny);
}

.btn-caly {
  width: 100%;
  margin-top: 1.4rem;
}

.okienko-stopka {
  margin-top: 1.3rem;
  font-size: 0.88rem;
  color: var(--atrament-2);
  text-align: center;
  line-height: 1.7;
}

.okienko-stopka a {
  font-weight: 620;
  color: var(--priorytet);
  text-decoration: none;
}

.okienko-stopka a:hover {
  text-decoration: underline;
}

.auth-znak-wodny {
  position: fixed;
  right: -70px;
  bottom: -90px;
  width: 340px;
  color: var(--stempel);
  opacity: 0.1;
  transform: rotate(-14deg);
  pointer-events: none;
}
