/* ==========================================================
   CRNA PSIHOLOGIJA — stilovi
   Boje mijenjaš samo ovdje, na vrhu (:root).
   ========================================================== */
:root {
  --bg: #0a0a0a;          /* pozadina */
  --text: #ffffff;        /* tekst */
  --muted: #a8a8a8;       /* sivi sitni tekst */
  --red: #d11a1a;         /* crvena (dugme, naglasci) */
  --red-hover: #ec2a2a;
  --purple: #6b2fa0;      /* mali ljubičasti detalj */
  --field: #161616;       /* polje za email */
  --border: #2c2c2c;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  /* suptilan crveni sjaj na vrhu */
  background-image: radial-gradient(ellipse at 50% -10%, rgba(209, 26, 26, .18), transparent 60%);
  background-repeat: no-repeat;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Logo ---------- */
.brand { text-align: center; margin-bottom: 32px; }
.brand__logo { max-width: 160px; height: auto; }
.brand__text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand__text em { font-style: normal; color: var(--red); }

/* ---------- Hero ---------- */
.hero { text-align: center; }

h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 16px;
  letter-spacing: .01em;
}
.accent { color: var(--red); }

.subline {
  margin: 0 0 28px;
  font-size: 19px;
  color: #e6e6e6;
}

/* ---------- Forma ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }

input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  font: inherit;
  font-size: 18px;       /* 16px+ sprječava zoom na iPhoneu */
  color: var(--text);
  background: var(--field);
  border: 2px solid var(--border);
  border-radius: 10px;
}
input[type="email"]::placeholder { color: #777; }
input[type="email"][aria-invalid="true"] { border-color: var(--red); }

button {
  min-height: 58px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .06em;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(209, 26, 26, .35);
  transition: background .15s, transform .1s;
}
button:hover { background: var(--red-hover); }
button:active { transform: scale(.98); }
button:disabled { opacity: .6; cursor: wait; }

/* Fokus — vidljiv za tastaturu */
input:focus-visible, button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
input[type="email"]:focus { border-color: var(--red); }

/* ---------- Poruke ---------- */
.message {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 17px;
  text-align: left;
}
.message[hidden] { display: none; }
.message.success { background: rgba(46, 160, 67, .15); border: 1px solid #2ea043; }
.message.error   { background: rgba(209, 26, 26, .15); border: 1px solid var(--red); }

/* ---------- Sitni tekst ---------- */
.tiny {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.tiny + .tiny { margin-top: 6px; }

/* ---------- Šta ćeš naučiti ---------- */
.learn { margin-top: 48px; }
.learn h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--purple);
}
.learn ul { list-style: none; margin: 0; padding: 0; }
.learn li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--border);
}
.learn li::before {
  content: "✕";
  position: absolute; left: 0; top: 14px;
  color: var(--red); font-weight: 600;
}

/* ---------- Blagi fade-in ---------- */
.fade { animation: fade .6s ease-out both; }
.learn.fade { animation-delay: .15s; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }

/* ---------- Veliki ekran ---------- */
@media (min-width: 600px) {
  .page { padding-top: 64px; }
  h1 { font-size: 40px; }
}

/* Vrlo uski telefoni */
@media (max-width: 360px) {
  h1 { font-size: 30px; }
  .page { padding-left: 16px; padding-right: 16px; }
}
