@import url("https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400..700;1,400..700&family=League+Spartan:wght@100..900&display=swap");
html {
  background-color: rgb(255, 255, 255);
  color: #ffffff;
  padding: 0%;
  margin: 0;
  font-family: "Afacad";
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0%;
  overflow-x: hidden;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #2e2e2e21;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  width: 100%;
  z-index: 100;
  overflow-x: hidden;
  overflow-y: hidden;

  /* ključ: počni ispod traka… */
  padding-top: var(--kc-headerH);

  /* …a visina = max( header + 40vh , header + content ) */
  min-height: max(
    calc(40dvh + var(--kc-headerH)),
    calc(var(--kc-heroContentH) + var(--kc-headerH))
  );
  min-height: max(
    calc(40svh + var(--kc-headerH)),
    calc(var(--kc-heroContentH) + var(--kc-headerH))
  );
  min-height: max(
    calc(40vh + var(--kc-headerH)),
    calc(var(--kc-heroContentH) + var(--kc-headerH))
  );
}

.hero-header {
  display: flex;
  flex-direction: column;
  margin-top: 45vh;
  width: 100vw;
  align-items: center;
}

.hero-header h1 {
  font-family: "League Spartan";
  font-size: 6em;
  margin-bottom: 0%;
  z-index: 105;
}

.hero-header p {
  font-size: 1.8em;
  font-weight: 100;
  margin-top: 0%;
  z-index: 105;
}
.heading {
  display: flex;
  width: 100%;
  height: 10vh;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.heading h2 {
  color: #2b2b2b;
  font-size: 2rem;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 9dvh;
  padding-bottom: 9dvh;
}

.auth-card {
  background: linear-gradient(#949494b0, #fff);
  padding: 0;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  width: 400px;
  max-width: 90%;
  text-align: center;
  overflow: hidden; /* IMPORTANT: hides the other form */
  position: relative;
}

.logo-login {
  width: 150px;
  margin: 1.5em;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  margin-bottom: 1.5em;
}

.tab-btn {
  flex: 1;
  padding: 0.8em;
  font-family: "League Spartan";
  font-size: 1rem;
  background-color: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 0;
}
.tab-btn.active,
.tab-btn:hover {
  background-color: #22549f;
  color: #fff;
}

/* Slide wrapper for animation */
.forms-wrapper {
  display: flex;
  width: 200%; /* two forms side by side */
  transform: translateX(0); /* default position */
  transition: transform 0.6s ease-in-out;
}
.auth-form {
  flex: 0 0 50%; /* each form still takes 50% of wrapper */
  max-width: 100%; /* but button spans full card */
  display: flex;
  flex-direction: column;
  padding: 0;
  height: inherit;
  margin-bottom: 0%;
  justify-content: flex-end;
}
.form-row {
  padding: 0 2em;
}
.row-input {
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
  min-width: 300px;
}

/* Form Fields */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-bottom: 1em;
  gap: 1em;
}

label {
  font-family: "Afacad", sans-serif;
  min-width: 100px;
  text-align: left;
  color: #000000;
}

input {
  padding: 0.7rem;
  border-radius: 10rem;
  border: none;
  background-color: #ffffff;
  font-family: "Afacad", sans-serif;
}
input:focus {
  outline: none;
  box-shadow: 2px 2px 5px #20202036;
}

.auth-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.8em;
  background-color: #22549f;
  border: none;
  font-family: "League Spartan", sans-serif;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}
.auth-btn:hover {
  background-color: #15458b; /* Darker beige on hover */
  color: #ffffff;
  cursor: pointer;
}

.alt-action {
  margin-top: 0.5em;
  font-size: 0.9rem;
}
.alt-action a {
  color: #445fe7;
  text-decoration: none;
}
.alt-action a:hover {
  text-decoration: underline;
}

#register-form .form-row input[type="checkbox"] {
  margin-right: 10px;
}

:root {
  --kc-bg: #2c2c2c;
  --kc-text: #f2f2f2;
  --kc-dim: #cfcfcf;
  --kc-accent: #2f56a6;
}

/* ====== Reset modal (generic) ====== */
.kc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999; /* iznad navigacije / videa */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* dok je zatvoren */
  opacity: 0;
  transition: opacity 0.2s ease;
}
.kc-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.kc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 17, 46, 0.55);
  -webkit-backdrop-filter: saturate(110%) blur(2px);
  backdrop-filter: saturate(110%) blur(2px);
}

.kc-modal__dialog {
  position: relative;
  width: min(520px, 92vw);
  max-height: 88vh;
  overflow: auto;
  background: #0b1533; /* tamna podloga (usklađeno s tvojim stilom) */
  color: #e9edf7;
  border: 1px solid rgba(122, 134, 166, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(122, 134, 166, 0.15) inset;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0;
}
.kc-modal.is-open .kc-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ====== Header ====== */
.kc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(122, 134, 166, 0.2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.kc-modal__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #f2f5ff;
}
.kc-modal__close {
  appearance: none;
  border: 0;
  outline: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9edf7;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.kc-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.kc-modal__close:active {
  transform: scale(0.96);
}
.kc-modal__close:focus-visible {
  outline: 2px solid #7aa2ff;
  outline-offset: 2px;
}

/* ====== Body ====== */
.kc-modal__body {
  padding: 18px;
}

/* ====== Form elementi (oslonac na postojeće .auth-form / .form-row / .auth-btn) ====== */
#reset-form .form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
#reset-form label {
  font-size: 0.92rem;
  color: #cfd7ef;
}
#reset-form input[type="email"],
#newpass-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: #0f1b42;
  color: #f3f6ff;
  border: 1px solid rgba(122, 134, 166, 0.28);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#reset-form input[type="email"]::placeholder,
#newpass-form input[type="password"]::placeholder {
  color: #8ea0c9;
}
#reset-form input[type="email"]:focus,
#newpass-form input[type="password"]:focus {
  border-color: #7aa2ff;
  box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.2);
}

#reset-form .btn-position,
#newpass-form .btn-position {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
#reset-form .auth-btn,
#newpass-form .auth-btn {
  border-radius: 10px;
  padding: 10px 14px;
}

/* ---- Primarna i sekundarna tipka (ako već nemaš u projektu) ---- */
#reset-submit,
#newpass-form .auth-btn[type="submit"] {
  background: #1b3a8a;
  color: #fff;
  border: none;
}
#reset-submit:hover,
#newpass-form .auth-btn[type="submit"]:hover {
  filter: brightness(1.04);
}
#reset-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#reset-cancel {
  background: #7a86a6;
  color: #0b1533;
  border: none;
}

/* ====== Responsivnost ====== */
@media (max-width: 480px) {
  .kc-modal__dialog {
    width: 94vw;
    border-radius: 14px;
  }
  .kc-modal__head {
    padding: 14px 14px;
  }
  .kc-modal__body {
    padding: 14px;
  }
}

/* ====== Accessibility: smanji animacije ====== */
@media (prefers-reduced-motion: reduce) {
  .kc-modal,
  .kc-modal__dialog {
    transition: none !important;
  }
}

/* ====== (Opcionalno) scrollbar unutar dialoga ====== */
.kc-modal__dialog::-webkit-scrollbar {
  width: 10px;
}
.kc-modal__dialog::-webkit-scrollbar-thumb {
  background: rgba(122, 134, 166, 0.35);
  border-radius: 10px;
}
.kc-modal__dialog::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.kc-footer {
  background: var(--kc-bg);
  color: var(--kc-text);
  font-family: "Afacad", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.kc-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.1fr; /* brand | linkovi | kontakt */
  gap: 48px;
  padding: 56px 0 28px;
}

/* Brand */
.kc-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.kc-brand__logo {
  width: 200px;
  height: auto;
  display: block;
  margin-bottom: 18px;
}
.kc-brand__tagline {
  margin: 6px 0 18px;
  color: var(--kc-dim);
  font-size: 1rem;
  text-align: center;
}
.kc-social {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
}
.kc-social__link {
  display: grid;
  place-items: center;
  width: fit-content;
  height: fit-content;
  color: #fff;
  transition: transform 0.2s ease;
}

.kc-social__link img {
  width: 55px;
}

.kc-social__link:nth-child(2) img {
  width: 60px;
}

.kc-social__link:hover {
  transform: translateY(-2px);
}

/* Link kolone */
.kc-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.kc-links__col h4,
.kc-contact h4 {
  font-family: "League Spartan", system-ui, sans-serif;
  font-size: 1.8rem;
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
}
.kc-links__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kc-links__col li + li {
  margin-top: 10px;
}
.kc-links__col a {
  color: var(--kc-text);
  text-decoration: none;
  opacity: 0.92;
  border-bottom: 1px solid transparent;
}
.kc-links__col a:hover {
  border-color: var(--kc-text);
}

/* Kontakt */
.kc-contact {
  font-style: normal;
}
.kc-contact p {
  margin: 0.5rem 0 1rem;
  color: var(--kc-dim);
}
.kc-contact a {
  color: var(--kc-text);
  text-decoration: none;
}

/* Bottom bar */
.kc-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #262626;
  margin-top: 28px;
}
.kc-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.95rem;
  color: #e6e6e6;
  gap: 12px;
}
.kc-footer__bottom-inner span:nth-child(2) {
  text-align: center;
  flex: 1;
}

/* Responsive */

@media (max-width: 1200px) {
}
@media (max-width: 1100px) {
  .kc-footer__top {
    grid-template-columns: 1fr;
  }
  .kc-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
}
@media (max-width: 640px) {
}

@media (max-width: 445px) {
  .form-row {
    padding-left: 0.5rem;
    padding-right: 1rem;
    justify-content: space-between;
  }
  .row-input {
    min-width: 250px;
  }
  label {
    min-width: 50px;
    padding-left: 1rem;
  }
  .input {
    width: 70%;
    max-width: 150px;
  }
}
@media (max-width: 375px) {
  .logo-login {
    width: 100px;
  }
}
