/* ==========================================================================
   מסך פתיחה — התאמה הדוקה לרפרנס המאושר
   ========================================================================== */
.login-body {
  overflow: hidden;
  min-height: 100vh;
  background: #1d1033;
}

/* קומפוזיציית מסע: פריז + לונדון + רומא מתוך הנכסים שכבר קיימים */
#loginBg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background-image: url("../assets/backgrounds/france-paris.webp");
  background-position: center left;
  background-size: cover;
}
#loginBg::before,
#loginBg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
}
#loginBg::before {
  background-image: url("../assets/backgrounds/england-london.webp");
  background-position: 78% center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 56%, rgba(0,0,0,.35) 70%, #000 87%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 56%, rgba(0,0,0,.35) 70%, #000 87%, #000 100%);
}
#loginBg::after {
  background-image: url("../assets/backgrounds/italy-rome.webp");
  background-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 82%, rgba(0,0,0,.42) 91%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 82%, rgba(0,0,0,.42) 91%, #000 100%);
  opacity: .94;
}

.login-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,7,28,0) 0%, rgba(15,7,28,.02) 61%, rgba(15,7,28,.38) 100%);
  pointer-events: none;
}

.login-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px 11px;
}

.login-panel {
  width: min(790px, 78vw);
  box-sizing: border-box;
  background:
    radial-gradient(circle at 54% 55%, rgba(255,255,255,.38), rgba(255,251,241,.82) 55%, rgba(255,250,239,.94) 100%);
  border-radius: 32px;
  border: 3px solid #8356b7;
  box-shadow:
    0 28px 68px rgba(23,9,42,.32),
    inset 0 0 0 2px rgba(224,177,55,.72);
  padding: 24px 72px 25px;
  text-align: center;
  backdrop-filter: blur(1.5px);
  animation: pop-in .45s ease both;
}

.login-title {
  margin: 0 0 2px;
  font-size: clamp(61px, 5.7vw, 82px);
  line-height: .96;
  font-weight: 950;
  color: #542273;
  letter-spacing: -2px;
  transform: scaleX(1.04);
  text-shadow:
    0 2px 0 #f2c65c,
    0 4px 0 #7a3c91,
    0 7px 0 rgba(69,26,91,.2),
    0 12px 24px rgba(47,20,67,.18);
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 12px 0 8px;
  color: #cf9620;
}
.dv-line {
  width: 132px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d7a532 25%, #d7a532 75%, transparent);
}
.dv-globe {
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(70,28,91,.25));
}
.dv-star { font-size: 20px; }

.login-subtitle {
  margin: 0;
  font-size: 21px;
  font-weight: 780;
  color: #633486;
}

.stage-badge {
  display: inline-block;
  min-width: 365px;
  margin: 14px 0 20px;
  padding: 9px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7543a4, #4d226e);
  color: #f5ce61;
  font-size: 21px;
  font-weight: 850;
  border: 2px solid #d9a72e;
  box-shadow:
    0 6px 13px rgba(51,23,74,.22),
    inset 0 0 0 1px rgba(255,255,255,.2);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fade-up .3s ease both;
}
.step-label {
  width: 100%;
  text-align: center;
  font-size: 22px;
  font-weight: 850;
  color: #5d2b82;
}
.step .field {
  width: min(500px, 100%);
  max-width: 500px;
  min-height: 56px;
  box-sizing: border-box;
  border-radius: 15px;
  border: 2px solid #7650a5;
  background: rgba(255,255,255,.89);
  font-size: 18px;
  padding: 0 19px;
  box-shadow: inset 0 2px 5px rgba(40,20,60,.04);
}
.login-cta {
  width: min(500px, 100%);
  min-height: 58px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 850;
  padding: 12px 24px;
  box-shadow: 0 8px 16px rgba(53,27,79,.18);
}
.btn-purple {
  background: linear-gradient(180deg, #7e4b9f 0%, #52246f 100%) !important;
}
.btn-green {
  background: linear-gradient(180deg, #7faa26 0%, #477d20 100%) !important;
}
.cta-icon {
  display: inline-block;
  transform: rotate(180deg);
  margin-left: 10px;
  font-size: 25px;
}

.login-separator {
  width: min(500px, 100%);
  margin: 12px auto 9px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #d59c28;
}
.login-separator span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(213,156,40,.72), transparent);
}
.login-separator b {
  font-size: 29px;
  font-weight: 400;
}

.password-row {
  position: relative;
  width: min(500px, 100%);
}
.password-row .field { max-width: none; padding-left: 54px; }
.pw-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 21px;
  padding: 6px;
  cursor: pointer;
  opacity: .78;
}
.step-note {
  max-width: 500px;
  margin: -1px 0 3px;
  font-size: 14px;
  color: var(--text-muted);
}
.link-back {
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}
.error-msg { min-height: 0; margin: 0; }
.error-msg:empty { display: none; }

/* סדר כמו ברפרנס: גלובוס, כוכב, גביע, מפה משמאל לימין */
.login-facts {
  direction: ltr;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: 32px;
  width: min(790px, 81vw);
  margin: 1px 0 0;
  padding: 0;
  color: #ffe082;
  text-align: center;
}
.fact {
  direction: rtl;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-shadow: 0 2px 8px rgba(11,4,22,.95);
}
.fact-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border-radius: 50%;
  font-size: 28px;
  background: rgba(56,27,79,.66);
  border: 2px solid #e1b33d;
  box-shadow: 0 5px 16px rgba(0,0,0,.24), inset 0 0 0 2px rgba(255,255,255,.07);
  backdrop-filter: blur(5px);
}
.fact b { font-size: 18px; }
.fact small { font-size: 13px; color: #f4f0e8; }

.login-love {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f5d575;
  text-shadow: 0 2px 8px rgba(20,8,40,.95);
  letter-spacing: .4px;
}

/* כניסת מנהל: גלגל שיניים קטן ומוסתר בפינה */
.admin-entry {
  position: fixed;
  z-index: 4;
  left: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(31,14,53,.25);
  color: rgba(255,248,220,.62);
  border: 1px solid rgba(241,203,96,.28);
  backdrop-filter: blur(5px);
  text-decoration: none;
  font-size: 16px;
  box-shadow: 0 5px 14px rgba(0,0,0,.1);
  opacity: .45;
  transition: opacity .2s ease, background .2s ease;
}
.admin-entry:hover {
  opacity: 1;
  background: rgba(31,14,53,.78);
}

/* סרטון פתיחה */
.login-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #10091c;
  opacity: 1;
  transition: opacity .4s ease;
}
.login-intro[hidden] { display: none; }
.login-intro.is-ending { opacity: 0; pointer-events: none; }
.login-intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10091c;
}

/* לפטופ: שומרים על אותה שפה עיצובית, רק מצמצמים מעט */
@media (max-height: 900px) {
  .login-wrap { gap: 8px; padding: 10px 14px 8px; }
  .login-panel { width: min(790px, 78vw); padding: 14px 60px 17px; }
  .login-title { font-size: 58px; }
  .title-divider { margin: 7px 0 5px; }
  .dv-line { width: 108px; }
  .dv-globe { font-size: 29px; }
  .login-subtitle { font-size: 18px; }
  .stage-badge { min-width: 330px; margin: 8px 0 11px; padding: 6px 25px; font-size: 18px; }
  .step-label { font-size: 19px; }
  .step .field { min-height: 48px; }
  .login-cta { min-height: 53px; font-size: 20px; }
  .login-separator { margin: 7px auto 6px; }
  .login-separator b { font-size: 23px; }
  .login-facts { gap: 22px; }
  .fact-icon { width: 48px; height: 48px; font-size: 23px; }
  .fact b { font-size: 15px; }
  .fact small { font-size: 11px; }
  .login-love { font-size: 13px; }
}

@media (max-width: 760px) {
  .login-body { overflow-y: auto; }
  .login-wrap { min-height: 100vh; justify-content: flex-start; padding-top: 58px; }
  .login-panel { width: 92vw; padding: 20px; }
  .login-title { font-size: 40px; transform: none; }
  .stage-badge { min-width: 0; width: 90%; }
  .login-facts { width: 92vw; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .admin-entry { left: 7px; bottom: 7px; width: 32px; height: 32px; font-size: 15px; }
}
