/* ================================================================
   Ekran za prijavu (portal/index.html) — jedina javna stranica portala.

   Do 08.09.2026. je bio gola centrirana kartica na bijelom. Sad prati
   hero s pas.kitchen: krem podloga (--background), zdjelice koje vire
   iza teksta s rasplinutom sjenom, i bijeli val na dnu koji uvodi u
   sljedecu sekciju. Mjere NISU prepisane iz Webflowa (tamo su tvrdo
   upisani pikseli po breakpointu) nego racunate clampom, jer ovdje
   nema Webflow editora koji bi ih odrzavao.

   Zajednicki header i footer su u pk-chrome.css — ovdje samo hero.
   ================================================================ */

main { flex: 1; display: flex; flex-direction: column; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--background);
  padding: 56px 24px 92px;   /* donji razmak drzi val podalje od kartice */
  overflow: hidden;          /* zdjelice namjerno vire izvan okvira */
}

.hero-inner {
  position: relative;
  z-index: 10;               /* iznad zdjelica i sjena */
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 50px);
  line-height: 1.08em;
  color: var(--heading);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--paragraphs);
  margin: 0 auto 28px;
  max-width: 440px;
}

/* ---------------- Kartica za prijavu ---------------- */
.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 26px 26px 24px;
  box-shadow: 0 18px 50px #3f2c2721;
  text-align: center;
}

.login-card .hint {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}

form { display: flex; flex-direction: column; gap: 10px; }

input[type="email"] {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  color: var(--paragraphs);
  background: var(--white);
  text-align: center;
}
input[type="email"]:focus { outline: 2px solid var(--green); border-color: transparent; }

button[type="submit"] {
  font-family: 'Jost', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border: none;
  border-radius: 50px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .3s, transform .3s;
}
button[type="submit"]:hover { background: var(--green); transform: scale(1.03); }
button[type="submit"]:disabled { opacity: .6; cursor: default; transform: none; }

.msg { font-size: 15px; margin-top: 14px; line-height: 1.5; }
.msg.ok { color: var(--green-dark); }
.msg.error { color: var(--red); }
.msg:empty { margin-top: 0; }

.no-password {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------------- Ukrasne zdjelice ---------------- */
/* Cisto ukras: aria-hidden u markupu, i nestaju ispod 992px gdje bi
   se popele na tekst. Sjena je isti recept kao na pas.kitchen —
   krug u boji naslova, opacity .3, blur 80px. */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-deco img { position: absolute; object-fit: contain; }
.hero-deco .shadow {
  position: absolute;
  background-color: var(--heading);
  opacity: .3;
  filter: blur(80px);
  border-radius: 100%;
}

.deco-krava   { width: 360px; height: 360px; left: -130px; bottom: -140px; }
.deco-krava-s { width: 210px; height: 210px; left: -40px;  bottom: -110px; }

.deco-sastojci   { width: 380px; height: 380px; right: -140px; top: -110px; }
.deco-sastojci-s { width: 220px; height: 220px; right: -50px;  top: -60px; }

.deco-kokos   { width: 200px; height: 200px; left: -70px; top: -60px; }
.deco-kokos-s { width: 120px; height: 120px; left: 0;     top: -20px; }

/* Izmedu 992 i 1200 je jos uvijek desktop izbornik, ali zdjelice bi
   dotakle karticu — smanje se umjesto da nestanu. */
@media screen and (max-width: 1200px) {
  .deco-krava   { width: 300px; height: 300px; left: -120px; bottom: -120px; }
  .deco-krava-s { width: 170px; height: 170px; left: -40px;  bottom: -90px; }

  .deco-sastojci   { width: 320px; height: 320px; right: -130px; top: -90px; }
  .deco-sastojci-s { width: 180px; height: 180px; right: -50px;  top: -50px; }

  .deco-kokos   { width: 170px; height: 170px; left: -65px; top: -50px; }
  .deco-kokos-s { width: 100px; height: 100px; left: 0;     top: -20px; }
}

/* Ispod 992 se izbornik sklapa u hamburger i sredina je preuska —
   ukras bi tada legao na tekst, pa ga nema. */
@media screen and (max-width: 991px) {
  .hero-deco { display: none; }
}

/* ---------------- Val prema bijelom ---------------- */
.wave-down {
  z-index: 20;
  /* Putanja je relativna na OVU datoteku (portal/css/), ne na stranicu. */
  background-image: url("../images/wave-white-down.svg");
  background-position: 50%;
  background-repeat: repeat-x;
  width: 100%;
  height: 36px;
  position: absolute;
  inset: auto 0 0;
}

/* ---------------- "Sto te ceka unutra" ---------------- */
.what {
  background: var(--white);
  padding: 44px 24px 56px;
}
.what-inner { max-width: 900px; margin: 0 auto; }

.what h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  text-align: center;
  margin-bottom: 26px;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.what-item { text-align: center; }

.what-ico {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.what-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 6px;
}

.what-item p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

@media screen and (max-width: 767px) {
  .hero { padding: 36px 18px 76px; }
  .hero-lead { font-size: 17px; }
  .login-card { padding: 22px 18px 20px; }
  .what { padding: 34px 18px 44px; }
  .what-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  button[type="submit"]:hover { transform: none; }
}
