* {
  padding: 0;
  margin: 0;
  border: 0;
  -webkit-tap-highlight-color: transparent;
}

*,
:after,
:before {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

:active,
:focus {
  outline: 0;
}

a:active,
a:focus {
  outline: 0;
}

a {
  display: block;
  cursor: pointer;
  font-size: inherit;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  color: currentColor;
}

button,
input,
textarea {
  font-family: inherit;
  font-weight: inherit;
  background-color: transparent;
  color: currentColor;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}
button:disabled {
  cursor: default;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a,
a:visited,
a:hover {
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

img {
  border-style: none;
  max-width: 100%;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.row {
  --x: 15px;
  --y: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 100%;
          flex: 1 0 100%;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-top: calc(var(--y) * -1);
  margin-right: calc(var(--x) / -2);
  margin-left: calc(var(--x) / -2);
}

.row > * {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--x) / 2);
  padding-left: calc(var(--x) / 2);
  margin-top: var(--y);
}

.col-1 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 8.333333%;
}

.col-2 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 16.666667%;
}

.col-3 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 25%;
}

.col-4 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 33.333333%;
}

.col-5 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 41.666667%;
}

.col-6 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 50%;
}

.col-7 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 58.333333%;
}

.col-8 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 66.666667%;
}

.col-9 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 75%;
}

.col-10 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 83.333333%;
}

.col-11 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 91.666667%;
}

.col-12 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  width: 100%;
}

body,
html {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  background: #ebfef1 url("../img/background.svg") center/auto no-repeat;
  color: #092c19;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

main {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
}

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.main {
  position: relative;
  overflow: hidden; /* clip drifting particles so they never add page scroll */
}
.main__top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 74px;
  z-index: 1;
}
.main__top-top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
}
.main__top-top span {
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #092c19;
  max-width: 352px;
  margin: 0 auto;
}
.main__bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 24px;
  text-align: center;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  z-index: 1;
}
.main__bottom a {
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.main__bottom a:hover {
  opacity: 0.7;
}

.container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 48px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 64px 0;
  min-height: 100vh;
  position: relative;
}

.particle {
  position: absolute;
  pointer-events: none;
}
.particles {
  position: absolute;
  top: 50%;
  left: 50%;
}
.particle-1 {
  right: 100%;
  -webkit-transform: translate(-190px, 150px);
      -ms-transform: translate(-190px, 150px);
          transform: translate(-190px, 150px);
}
.particle-2 {
  left: 100%;
  -webkit-transform: translate(170px, 170px);
      -ms-transform: translate(170px, 170px);
          transform: translate(170px, 170px);
}
.particle-3 {
  right: 100%;
  -webkit-transform: translate(-113px, 650px);
      -ms-transform: translate(-113px, 650px);
          transform: translate(-113px, 650px);
}
.particle-4 {
  left: 100%;
  -webkit-transform: translate(190px, 650px);
      -ms-transform: translate(190px, 650px);
          transform: translate(190px, 650px);
}

.form {
  border: 1px solid #195333;
  border-radius: 20px;
  padding: 32px;
  -webkit-box-shadow: 0 4px 0 0 #195333;
          box-shadow: 0 4px 0 0 #195333;
  background: #fff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 24px;
  width: 100%;
}
.form__icon {
  max-width: 132px;
  margin: 0 auto;
}
.form .form__succes-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.form.success .form__header {
  text-align: center;
}
.form.success span {
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #092c19;
  max-width: 352px;
  margin: 0 auto;
}
.form__header {
  font-weight: 800;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: -0.01em;
}
.form__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
  width: 100%;
}
.form__inner-header {
  font-weight: 800;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
}
.form__inner-input input {
  -webkit-box-shadow: 0 -1px 0 0 #195333;
          box-shadow: 0 -1px 0 0 #195333;
  background: #ebfef1;
  border: 1px solid #195333;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  color: #092c19;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  width: 100%;
}
.form__inner-input input::-webkit-input-placeholder {
  color: rgba(9, 44, 25, 0.5);
}
.form__inner-input input::-moz-placeholder {
  color: rgba(9, 44, 25, 0.5);
}
.form__inner-input input:-ms-input-placeholder {
  color: rgba(9, 44, 25, 0.5);
}
.form__inner-input input::-ms-input-placeholder {
  color: rgba(9, 44, 25, 0.5);
}
.form__inner-input input::placeholder {
  color: rgba(9, 44, 25, 0.5);
}
.form__inner-input input:focus, .form__inner-input input:active {
  -webkit-box-shadow: 0 0 0 3px rgba(25, 83, 51, 0.2), 0 0 0 0 #195333;
          box-shadow: 0 0 0 3px rgba(25, 83, 51, 0.2), 0 0 0 0 #195333;
}
.form__inner-error {
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  letter-spacing: -0.01em;
  color: #c32527;
  display: none;
}
.form__inner.error .form__inner-input input {
  -webkit-box-shadow: 0 -1px 0 0 #c32527;
          box-shadow: 0 -1px 0 0 #c32527;
  border: 1px solid #c32527;
}
.form__inner.error .form__inner-error {
  display: block;
}
.form__inner-button {
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  -webkit-box-shadow: 0 2px 0 0 #195333;
          box-shadow: 0 2px 0 0 #195333;
  background: #fff;
  border: 1px solid #195333;
  border-radius: 10px;
  padding: 12px 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.form__inner-button.user img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}
.form__inner-button:hover {
  -webkit-box-shadow: 0 0 0 0 #195333;
          box-shadow: 0 0 0 0 #195333;
}
.form__button {
  font-weight: 800;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #092c19;
  -webkit-box-shadow: 0 2px 0 0 #195333;
          box-shadow: 0 2px 0 0 #195333;
  background: #4cd48a;
  border: 1px solid #195333;
  border-radius: 10px;
  padding: 12px 14px;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.form__button:hover {
  -webkit-box-shadow: 0 0 0 0 #195333;
          box-shadow: 0 0 0 0 #195333;
}

@media (max-width: 1024px) {
  .container {
    padding: 48px 0;
  }
  .main__top {
    gap: 48px;
  }
}
@media (max-width: 920px) {
  .container {
    position: initial;
    padding: 48px 16px;
  }
  .particle-1 {
    right: initial;
    width: 90px;
    -webkit-transform: translate(-20px, 15px);
        -ms-transform: translate(-20px, 15px);
            transform: translate(-20px, 15px);
    left: 0;
  }
  .particle-2 {
    left: initial;
    width: 81px;
    -webkit-transform: translate(20px, 170px);
        -ms-transform: translate(20px, 170px);
            transform: translate(20px, 170px);
    right: 0;
  }
  .particle-3 {
    right: initial;
    width: 114px;
    -webkit-transform: translate(-30px, 710px);
        -ms-transform: translate(-30px, 710px);
            transform: translate(-30px, 710px);
    left: 0;
  }
  .particle-4 {
    left: initial;
    width: 60px;
    -webkit-transform: translate(-20px, 710px);
        -ms-transform: translate(-20px, 710px);
            transform: translate(-20px, 710px);
    right: 0;
  }
}

/* ---------- Motion: entrance, idle drift + mouse parallax, success pop ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes wl-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes wl-pop-in {
    0%   { opacity: 0; transform: scale(0.92); }
    60%  { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
  }

  .main__top-top { animation: wl-fade-up 0.6s ease-out both; }
  .form          { animation: wl-fade-up 0.6s ease-out 0.1s both; }
  .main__bottom  { animation: wl-fade-up 0.6s ease-out 0.2s both; }

  /* Success card overrides the fade-up with a pop (two-class selector wins on specificity). */
  .form.success  { animation: wl-pop-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

  /* JS drives the `translate` property (idle drift + parallax); positioning stays on `transform`. */
  .particle { will-change: translate; }

  .form__button:active,
  .form__inner-button:active { transform: translateY(1px) scale(0.99); }
}

/* The `hidden` attribute must win over the .form / .form__inner-button display rules. */
.form[hidden],
.form__inner-button[hidden] { display: none; }

/* ===== Extra motion: ambient, cursor, feedback, success ===== */
@media (prefers-reduced-motion: no-preference) {
  .wrapper::before {
    content: '';
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(40% 40% at 25% 30%, rgba(76, 212, 138, 0.25), transparent 70%),
      radial-gradient(35% 35% at 80% 70%, rgba(25, 83, 51, 0.16), transparent 70%);
    filter: blur(20px);
    animation: wl-aurora 22s ease-in-out infinite alternate;
  }
  @keyframes wl-aurora {
    0%   { transform: translate(-3%, -2%) scale(1); }
    50%  { transform: translate(2%, 3%) scale(1.08); }
    100% { transform: translate(3%, -3%) scale(1.04); }
  }

  /* Particles breathe (scale is independent of transform/translate). */
  .particle   { animation: wl-breathe ease-in-out infinite; }
  .particle-1 { animation-duration: 6s; }
  .particle-2 { animation-duration: 7.5s; animation-delay: -1s; }
  .particle-3 { animation-duration: 6.8s; animation-delay: -2s; }
  .particle-4 { animation-duration: 8s; animation-delay: -0.5s; }
  @keyframes wl-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }

  /* Shine sweep across the primary button on hover. */
  .form__button { position: relative; overflow: hidden; }
  .form__button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
  }
  .form__button:hover::after { left: 150%; }

  /* Error nudge — subtle, decaying amplitude (not a hard shake). */
  .form__inner.shake { animation: wl-shake 0.3s ease; }
  @keyframes wl-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
  }

  /* Form fades out before the success card pops in. */
  #formCard.is-leaving { animation: wl-fade-out 0.26s ease-in forwards; }
  @keyframes wl-fade-out { to { opacity: 0; transform: translateY(-10px) scale(0.97); } }

  /* Success: checkmark pop + staggered text. */
  .form.success .form__icon { animation: wl-check-pop 0.6s cubic-bezier(0.2, 0.9, 0.2, 1.2) both; }
  @keyframes wl-check-pop {
    0%   { opacity: 0; transform: scale(0.3) rotate(-12deg); }
    60%  { transform: scale(1.12) rotate(4deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
  }
  .form.success .form__header { animation: wl-fade-up 0.5s ease-out 0.18s backwards; }
  .form.success #successName,
  .form.success .form__succes-text span:last-child { animation: wl-fade-up 0.5s ease-out 0.3s backwards; }

  /* Loading spinner on the primary button. */
  .form__button.is-loading { color: transparent; pointer-events: none; }
  .form__button.is-loading::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(9, 44, 25, 0.3);
    border-top-color: #092c19;
    border-radius: 50%;
    animation: wl-spin 0.7s linear infinite;
  }
  @keyframes wl-spin { to { transform: rotate(360deg); } }
}

/* Screen-reader-only (visible to assistive tech, hidden visually). */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide the scrollbar — the page is a single screen (scrolling itself still works). */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge/IE */
}
html::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}