:root {
  --primary: #0941a4;
  --primary-dark: #06318a;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --error: #ef4444;
  --input-border: #e5e7eb;
  --placeholder: rgba(26, 26, 46, 0.5);
  --hero-overlay: rgba(8, 50, 122, 0.32);
  --card-shadow: 0 25px 60px rgba(8, 50, 122, 0.32);
  --figma-background: url("./assets/background.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  direction: rtl;
  color: #ffffff;
  font-family: "Fredoka", "Heebo", "Arial Hebrew", Arial, sans-serif;
  font-feature-settings: "kern" 1;
  background: var(--primary-dark);
}

button,
input {
  font: inherit;
}

.landing-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(4, 44, 115, 0.18), rgba(255, 255, 255, 0.04) 52%, rgba(4, 44, 115, 0.22)), var(--figma-background) center/cover no-repeat, var(--primary);
}
.landing-page::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background: radial-gradient(circle at 51% 47%, rgba(255, 255, 255, 0.28), transparent 28%);
}
.landing-page::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(180deg, rgba(0, 50, 128, 0) 60%, rgba(0, 30, 95, 0.4));
}

.hero {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(20rem, 1fr);
  grid-template-rows: auto 1fr;
  gap: clamp(6rem, 2vw, 2rem) clamp(1.5rem, 5vw, 4.5rem);
  align-items: stretch;
  direction: ltr;
  width: min(100%, 78rem);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(0.9rem, 3vh, 2.25rem) clamp(1.25rem, 4vw, 3rem);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1;
  direction: rtl;
}

.brand__logo {
  display: block;
  width: clamp(14rem, 27vw, 23rem);
  height: auto;
  filter: drop-shadow(0 20px 28px rgba(0, 36, 100, 0.32));
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-column: 2;
  direction: rtl;
  max-width: 42rem;
  padding-block: clamp(0.6rem, 2vh, 1.6rem);
  text-align: right;
  text-shadow: 0 4px 18px rgba(0, 30, 90, 0.32);
}
.intro h1 {
  margin: 0;
  font-size: clamp(2.05rem, 4.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
}
.intro p + p {
  margin-block-start: 0.6em;
}

.signup-card {
  grid-column: 1/-1;
  justify-self: center;
  direction: rtl;
  width: min(100%, 42rem);
  margin-block-start: clamp(-0.4rem, -0.5vw, 0rem);
  padding: clamp(1.6rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text-dark);
  text-align: right;
  background: #ffffff;
  border-radius: clamp(1rem, 1.5vw, 1.5rem);
  box-shadow: var(--card-shadow);
}

.signup-card__header {
  margin-block-end: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}
.signup-card__header h2 {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.signup-card__header p {
  margin: 0;
  color: var(--primary);
  font-size: clamp(0.95rem, 1.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.45;
}

.form-field {
  display: grid;
  gap: 0.5rem;
  margin-block-end: clamp(0.65rem, 1.4vw, 1rem);
}
.form-field label {
  color: var(--text-dark);
  font-family: "Heebo", "Fredoka", Arial, sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 500;
  line-height: 1.5;
}
.form-field label span {
  color: var(--error);
  margin-inline-start: 0.15rem;
}
.form-field input {
  width: 100%;
  height: clamp(2.6rem, 5.4vh, 3.25rem);
  padding: 0 1.05rem;
  color: var(--text-dark);
  text-align: right;
  font-family: "Heebo", "Fredoka", Arial, sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  font-weight: 400;
  background: #ffffff;
  border: 2px solid var(--input-border);
  border-radius: 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-field input::placeholder {
  color: var(--placeholder);
  font-weight: 400;
}
.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(9, 65, 164, 0.14);
}
.form-field input[aria-invalid=true] {
  border-color: var(--error);
}

.field-error {
  margin: 0;
  color: var(--error);
  font-family: "Heebo", "Fredoka", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  display: none;
}
.field-error:empty {
  display: none;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: clamp(2.85rem, 5.8vh, 3.75rem);
  margin-block-start: clamp(0.35rem, 1vh, 0.75rem);
  color: #ffffff;
  font-family: "Heebo", "Fredoka", Arial, sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
  background: var(--primary);
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.submit-button:hover {
  filter: brightness(1.06);
}
.submit-button:active {
  transform: translateY(1px);
}

.submit-button__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #ffffff;
  flex-shrink: 0;
}

.privacy-note {
  margin: clamp(0.85rem, 1.5vw, 1.15rem) 0 0;
  color: var(--text-muted);
  font-family: "Heebo", "Fredoka", Arial, sans-serif;
  font-size: clamp(0.78rem, 0.95vw, 0.875rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

@media (min-width: 900px) and (max-height: 820px) {
  .hero {
    gap: 0.55rem 3.5rem;
    padding-block: clamp(0.6rem, 2vh, 1rem);
  }
  .brand__logo {
    width: clamp(11.5rem, 22vw, 16rem);
  }
  .intro {
    padding-block: 0.5rem;
  }
  .intro h1 {
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    line-height: 1.1;
  }
  .intro p {
    font-size: clamp(0.82rem, 1.05vw, 0.95rem);
    line-height: 1.4;
  }
  .intro p + p {
    margin-block-start: 0.4rem;
  }
  .signup-card {
    width: min(100%, 32rem);
    padding: 1.1rem 1.7rem 0.85rem;
    border-radius: 1.1rem;
  }
  .signup-card__header {
    margin-block-end: 0.6rem;
  }
  .signup-card__header h2 {
    font-size: 1.5rem;
    margin-block-end: 0.18rem;
  }
  .signup-card__header p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .form-field {
    gap: 0.3rem;
    margin-block-end: 0.45rem;
  }
  .form-field label {
    font-size: 0.83rem;
  }
  .form-field input {
    height: 2.15rem;
    padding: 0 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
  }
  .submit-button {
    height: 2.4rem;
    margin-block-start: 0.18rem;
    border-radius: 0.7rem;
    font-size: 0.95rem;
  }
  .privacy-note {
    margin-block-start: 0.5rem;
    font-size: 0.7rem;
  }
}
@media (max-width: 760px) {
  .landing-page {
    overflow: auto;
  }
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.1rem;
    min-height: 100svh;
    padding: 1.25rem clamp(1rem, 5vw, 1.5rem) 1.5rem;
  }
  .brand {
    order: 1;
    align-self: center;
  }
  .brand__logo {
    width: clamp(10.5rem, 56vw, 14.5rem);
  }
  .intro {
    order: 2;
    padding-block: 0;
    text-align: center;
  }
  .intro h1 {
    margin-block-end: 0.65rem;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1.15;
  }
  .intro p {
    margin-inline: auto;
    font-size: clamp(0.92rem, 4vw, 1.05rem);
    line-height: 1.55;
  }
  .signup-card {
    order: 3;
    width: min(100%, 30rem);
    margin-block-start: 0.2rem;
    padding: 1.4rem clamp(1rem, 5vw, 1.5rem) 1.1rem;
    border-radius: 1.25rem;
  }
  .signup-card__header h2 {
    font-size: 1.65rem;
  }
  .signup-card__header p {
    font-size: 0.95rem;
  }
  .form-field {
    margin-block-end: 0.7rem;
  }
  .form-field input {
    height: 2.85rem;
  }
  .submit-button {
    height: 3.15rem;
  }
}
