/* Kolory z wyndhamwroclawot.com; Montserrat zamiast licencjonowanego Gothama. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --navy: #192a3d;
  --blue: #007cc1;
  --blue-dark: #00639a;
  --stone: #d7d2cb;
  --warm-grey: #7a7874;
  --grey: #54585a;
  --paper: #ffffff;
  --error: #b42318;
  --font: "Montserrat", "Gotham", "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--blue);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Kolor tła na czas ładowania zdjęcia. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--navy);
  background-image: url("../img/hero.jpg");
  background-image: image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 62% center;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 42, 61, 0.5) 0%, rgba(25, 42, 61, 0.15) 20%, rgba(25, 42, 61, 0.3) 60%, rgba(25, 42, 61, 0.8) 100%);
}

/* Ciemniej pod logo (biały sufit na zdjęciu); pod tekstem — .intro::before w index.html. */
@media (min-width: 900px) {
  .backdrop::after {
    background:
      linear-gradient(90deg, rgba(25, 42, 61, 0.45) 0%, rgba(25, 42, 61, 0.25) 35%, rgba(25, 42, 61, 0.1) 65%, rgba(25, 42, 61, 0.1) 100%),
      linear-gradient(180deg, rgba(25, 42, 61, 0.5) 0%, rgba(25, 42, 61, 0) 20%, rgba(25, 42, 61, 0) 70%, rgba(25, 42, 61, 0.45) 100%);
  }
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* login.html i alogin.html */
.status-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px 16px;
  text-align: center;
  color: #fff;
}

.status-screen .logo {
  width: min(260px, 70vw);
  height: auto;
}

.status-card {
  width: min(420px, 100%);
  background: var(--paper);
  color: var(--navy);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-top: 4px solid var(--blue);
}

.status-card h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey);
}

.status-card a {
  color: var(--blue-dark);
  font-weight: 600;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 124, 193, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.checkmark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark::after {
  content: "";
  width: 10px;
  height: 18px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -2px);
}

.demo-note {
  font-size: 13px;
  color: var(--grey);
  background: #f3f6f9;
  border-left: 3px solid var(--warm-grey);
  padding: 10px 12px;
  text-align: left;
}
