/* Orange House Kft. – jelentkezési oldalak közös stíluslapja */

:root {
  --orange: #F08A24;
  --navy: #16294B;
  --line: #EAE6E1;
  --page: #F5F3EF;
  --shadow: 0 12px 34px rgba(22, 41, 75, .12);

  /* Az iframe magassága a képernyő látható magasságához igazodik */
--form-height: 92vh;
--form-height-mobile: 82dvh;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  color: var(--navy);
  background: var(--page);
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, 92vw); margin-inline: auto; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(234, 230, 225, .95);
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: contain;
}
.brand-copy b {
  display: block;
  color: var(--navy);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.15;
}
.brand-copy span {
  display: block;
  margin-top: .13rem;
  color: var(--orange);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem 1rem;
  border: 1.5px solid rgba(22, 41, 75, .18);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.back-link:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  transform: translateX(-2px);
}
.back-link:focus-visible {
  outline: 3px solid rgba(240, 138, 36, .42);
  outline-offset: 3px;
}
.back-link svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Űrlap ---------- */
.form-wrap {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}
.form-wrap iframe {
  display: block;
  width: 100%;
  height: var(--form-height);
  border: 0;
  background-color: var(--page);
}

/* ---------- Betöltésjelző ---------- */
.form-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding-top: clamp(3.5rem, 16vh, 8rem);
  background: var(--page);
  transition: opacity .35s ease, visibility .35s ease;
}
.form-loader[hidden] {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.form-loader__spinner {
  width: 54px;
  height: 54px;
  border: 4px solid rgba(22, 41, 75, .14);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: oh-spin .9s linear infinite;
}
.form-loader__text {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-loader__note {
  max-width: 30ch;
  text-align: center;
  font-size: .82rem;
  color: rgba(22, 41, 75, .6);
}
@keyframes oh-spin { to { transform: rotate(360deg); } }

/* ---------- Mobil ---------- */
@media (max-width: 680px) {
  .nav { min-height: 68px; gap: .8rem; }
  .brand img { width: 46px; height: 46px; }
  .brand-copy { display: none; }
  .back-link { padding: .66rem .82rem; font-size: .75rem; }
  .form-wrap iframe { height: var(--form-height-mobile); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .form-loader__spinner { animation-duration: 2.4s; }
}
