@font-face {
  font-family: "ElMessiri";
  src: url("../fonts/ElMessiri-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ElMessiri";
  src: url("../fonts/ElMessiri-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #3e8a39;
  --brand-2: #33b0d2;
  --ink: #142139;
  --muted: #596b80;
  --line: #cfd9e5;
  --page: #eef3f8;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #ffffff;
  font-family: "ElMessiri", "Tahoma", "Arial", sans-serif;
}

a {
  color: #2672dc;
  text-decoration: none;
}

.trial-page {
  position: relative;
  min-height: 100vh;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 46px;
  isolation: isolate;
}

.trial-page::before,
.trial-page::after {
  content: "";
  position: absolute;
  inset: 18px -52px 20px;
  z-index: -1;
  pointer-events: none;
}

.trial-page::before {
  opacity: 0.55;
  background:
    radial-gradient(circle at 12% 18%, rgba(62, 138, 57, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 78%, rgba(51, 176, 210, 0.13) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 16%, rgba(62, 138, 57, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 56%, rgba(51, 176, 210, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 50%, rgba(255, 255, 255, 0.85), transparent 34%),
    linear-gradient(115deg, transparent 12%, rgba(51, 176, 210, 0.07) 13%, transparent 24%),
    linear-gradient(25deg, transparent 58%, rgba(62, 138, 57, 0.08) 59%, transparent 70%);
  background-size: 320px 240px, 260px 220px, 420px 300px, 360px 280px, 100% 100%, 680px 100%, 760px 100%;
  filter: blur(0.1px);
  animation: techDrift 18s linear infinite;
}

.trial-page::after {
  inset: 52px -18px 64px;
  opacity: 0.35;
  background:
    radial-gradient(ellipse at 72% 45%, rgba(51, 176, 210, 0.13), transparent 42%),
    radial-gradient(ellipse at 30% 65%, rgba(62, 138, 57, 0.1), transparent 36%),
    linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.8) 48%, transparent 54% 100%);
  animation: waterSweep 9s ease-in-out infinite;
}

.trial-intro {
  padding: 32px 8px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 56px;
  color: var(--brand);
  font-weight: 700;
}

.trial-logo {
  width: 190px;
  height: auto;
  display: block;
  margin-bottom: 54px;
}

.trial-intro h1 {
  max-width: 540px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.25;
}

.trial-intro p {
  max-width: 560px;
  margin: 0 0 56px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 2;
}

.feature-list {
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 36px;
}

.feature-list span {
  position: relative;
  padding-inline-start: 28px;
  color: #06162f;
  font-weight: 700;
}

.feature-list span::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px 999px 999px 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transform: translateY(-50%) rotate(-45deg);
}

.signup-card {
  width: min(100%, 590px);
  padding: 54px 62px 44px;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 24px 55px rgba(22, 41, 65, 0.11);
}

.signup-card h2 {
  margin: 0 0 26px;
  color: #06162f;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.1;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
}

label > span {
  color: #536477;
  font-weight: 700;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #9fb0c4;
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: #3477ff;
  box-shadow: 0 0 0 3px rgba(52, 119, 255, 0.12);
}

.phone-field,
.domain-field {
  display: grid;
  grid-template-columns: 136px 1fr;
}

.domain-field strong {
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #9fb0c4;
  border-inline-end: 0;
  background: #f8fafc;
  color: #26364b;
  font: inherit;
  font-weight: 700;
}

.phone-field {
  direction: ltr;
  position: relative;
}

.country-picker {
  position: relative;
  z-index: 5;
}

.country-trigger {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #9fb0c4;
  border-inline-end: 0;
  border-radius: 0;
  background: #f8fafc;
  color: #26364b;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.country-trigger::after {
  content: "";
  width: 0;
  height: 0;
  margin-inline-start: 2px;
  border-inline: 4px solid transparent;
  border-top: 5px solid #34465a;
}

.country-trigger:focus {
  border-color: #3477ff;
  box-shadow: 0 0 0 3px rgba(52, 119, 255, 0.12);
  outline: none;
}

.flag-icon {
  width: 20px;
  height: 14px;
  flex: 0 0 20px;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(38, 54, 75, 0.12);
}

.country-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: min(330px, calc(100vw - 64px));
  max-height: 245px;
  overflow-y: auto;
  display: none;
  padding: 6px;
  border: 1px solid #9fb0c4;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(18, 35, 61, 0.16);
}

.country-picker.is-open .country-menu {
  display: grid;
}

.country-menu button {
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #26364b;
  font: inherit;
  font-size: 0.88rem;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

.country-menu button:hover,
.country-menu button:focus {
  background: #eef7f4;
  color: var(--brand);
  outline: none;
}

.phone-field input {
  direction: ltr;
  text-align: left;
}

.domain-field {
  grid-template-columns: 140px 1fr;
  direction: rtl;
}

.domain-field strong {
  border: 1px solid #9fb0c4;
  border-inline-start: 1px solid #9fb0c4;
  border-inline-end: 1px solid #9fb0c4;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}

.domain-field input {
  border-inline-end: 0;
  direction: ltr;
  text-align: left;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-inline-start: 52px;
}

.password-toggle {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #536477;
  cursor: pointer;
}

.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-visible {
  color: var(--brand);
}

.checkbox-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 2px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  padding: 0;
  accent-color: var(--brand);
}

.checkbox-row span {
  color: #34465a;
  font-size: 0.92rem;
  line-height: 1.8;
}

.submit-btn {
  min-height: 58px;
  margin-top: 4px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), #4caf35);
  color: #ffffff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(62, 138, 57, 0.22);
}

.terms,
.login-line {
  margin: 0;
  text-align: center;
  color: #1d2e44;
  font-size: 0.92rem;
}

.terms {
  margin-top: 2px;
  text-decoration: underline;
}

.login-line {
  font-size: 1rem;
  font-weight: 700;
}

@keyframes techDrift {
  0% {
    background-position: 0 0, 80px 40px, 120px 0, 0 120px, center, -160px 0, 240px 0;
  }
  100% {
    background-position: 320px 240px, 340px 260px, 540px 300px, 360px 400px, center, 520px 0, -520px 0;
  }
}

@keyframes waterSweep {
  0%,
  100% {
    transform: translateX(-18px) scale(0.98);
    opacity: 0.24;
  }
  50% {
    transform: translateX(18px) scale(1.02);
    opacity: 0.42;
  }
}

@media (max-width: 920px) {
  .trial-page {
    padding: 32px 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trial-page::before,
  .trial-page::after {
    inset-inline: -18px;
    opacity: 0.32;
  }

  .trial-intro {
    text-align: center;
  }

  .trial-logo,
  .trial-intro p,
  .trial-intro h1,
  .feature-list {
    margin-inline: auto;
  }

  .back-link {
    margin-bottom: 30px;
  }

  .trial-logo {
    margin-bottom: 28px;
  }

  .trial-intro p {
    margin-bottom: 34px;
  }

  .signup-card {
    margin: 0 auto;
    padding: 34px 22px 30px;
  }
}

@media (max-width: 560px) {
  .feature-list {
    grid-template-columns: 1fr;
  }

  .domain-field strong {
    border: 1px solid #9fb0c4;
  }

  .phone-field {
    grid-template-columns: 128px 1fr;
  }
}
