:root {
  --auth-green: #34743a;
  --auth-green-dark: #215c2b;
  --auth-ink: #141414;
  --auth-muted: #8d929b;
  --auth-border: #cbd5d0;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 5% 5%, #78bd70 0, transparent 24%),
    radial-gradient(circle at 95% 93%, #85c979 0, transparent 29%),
    linear-gradient(135deg, #1f5d2b, #4b974d 52%, #246b34);
  color: var(--auth-ink);
  font:
    14px/1.45 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

.auth-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(16px, 4vw, 42px);
}

.auth-page::before,
.auth-page::after {
  position: absolute;
  z-index: 0;
  border: 1px solid #ffffff3d;
  border-radius: 50%;
  content: "";
}

.auth-page::before {
  top: -220px;
  right: -160px;
  width: 420px;
  height: 420px;
  box-shadow:
    0 0 0 34px #ffffff08,
    0 0 0 69px #ffffff06;
}

.auth-page::after {
  bottom: -175px;
  left: -120px;
  width: 300px;
  height: 300px;
  box-shadow:
    0 0 0 28px #ffffff09,
    0 0 0 56px #ffffff05;
}

.auth-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  width: min(1040px, 100%);
  min-height: 640px;
  padding: clamp(17px, 2.5vw, 30px);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 24px 60px #00000052,
    0 8px 18px #00000024;
}

.auth-illustration {
  position: relative;
  isolation: isolate;
  min-height: 580px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 45px);
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(155deg, #3a8443, #2f743a 58%, #79b969);
}

.auth-illustration::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 50%, #123d1a2b);
  content: "";
  opacity: 0.5;
}

.auth-illustration h1 {
  position: relative;
  z-index: 2;
  max-width: 320px;
  margin: 2px 0 0;
  font-size: clamp(35px, 4.1vw, 51px);
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.auth-illustration h1 span {
  display: inline-block;
  border-bottom: 3px solid #fff;
}

.auth-illustration p {
  position: relative;
  z-index: 2;
  max-width: 300px;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.auth-illustration img {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 310px;
  border-radius: 0 0 36px 36px;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #00000066 22%,
    #000 48%,
    #000 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #00000066 22%,
    #000 48%,
    #000 100%
  );
  object-fit: cover;
  object-position: center 42%;
}

.auth-illustration::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 145px;
  background: linear-gradient(
    180deg,
    #1f5d2b38 0%,
    #1f5d2b22 45%,
    transparent 100%
  );
  content: "";
  pointer-events: none;
}

.auth-form-side {
  display: grid;
  place-items: center;
  padding: 36px clamp(25px, 5vw, 68px);
}

.auth-form-card {
  width: min(100%, 350px);
}

.auth-kicker {
  margin: 0 0 6px;
  color: var(--auth-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.auth-form-card h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.05em;
  text-align: center;
}

.auth-intro {
  margin: 3px 0 25px;
  color: #7c8797;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #5f6876;
  font-size: 11px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: #fff;
  color: var(--auth-ink);
  box-shadow: 0 1px 2px #1720330b;
  font: 13px inherit;
  outline: 0;
  transition: 0.15s;
}

.auth-form input:focus {
  border-color: var(--auth-green);
  box-shadow: 0 0 0 3px #34743a2b;
}

.auth-form .code {
  letter-spacing: 0.32em;
  font-weight: 800;
  text-align: center;
}

.auth-primary,
.auth-secondary-link {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 11px;
  background: var(--auth-green);
  color: #fff;
  box-shadow: 0 10px 20px -14px #174923;
  cursor: pointer;
  font:
    800 13px Inter,
    system-ui;
  text-align: center;
  text-decoration: none;
  transition: 0.15s;
}

.auth-primary:hover {
  background: var(--auth-green-dark);
  transform: translateY(-1px);
}

.auth-primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-status {
  min-height: 18px;
  margin: 11px 0 0;
  color: #b42318;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.auth-status.ok {
  color: #148448;
}

.auth-status.error {
  color: #b42318;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 17px;
  font-size: 11px;
}

.auth-footer-links a,
.auth-text-link {
  color: #286a34;
  font-weight: 800;
  text-decoration: none;
}

.auth-footer-links a:hover,
.auth-text-link:hover {
  text-decoration: underline;
}

.auth-resend {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #286a34;
  box-shadow: none;
  font-size: 11px;
  font-weight: 800;
}

.auth-resend:hover {
  background: transparent;
  text-decoration: underline;
  transform: none;
}

.auth-help {
  margin: 18px 0 0;
  color: #9299a4;
  font-size: 10px;
  line-height: 1.85;
  text-align: center;
}

@media (max-width: 760px) {
  .auth-page {
    padding: 0;
  }

  .auth-card {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: 0;
    border-radius: 0;
  }

  .auth-illustration {
    min-height: 330px;
    padding: 33px 29px;
    border-radius: 0;
  }

  .auth-illustration h1 {
    margin-top: 0;
    font-size: 37px;
  }

  .auth-illustration p {
    margin-top: 13px;
    font-size: 12px;
  }

  .auth-illustration img {
    height: 215px;
    border-radius: 0;
  }

  .auth-form-side {
    padding: 36px 24px 42px;
  }

  .auth-form-card {
    max-width: 390px;
  }
}

@media (max-width: 380px) {
  .auth-illustration {
    min-height: 285px;
  }

  .auth-illustration h1 {
    font-size: 31px;
  }

  .auth-illustration img {
    height: 175px;
  }

  .auth-form-side {
    padding: 28px 18px;
  }
}
