:root {
  --bone: #f6f2e9;
  --cream: #ece5d6;
  --sand: #e2d9c6;
  --paper: #fffdf8;
  --ink: #15201a;
  --ink-soft: #43504a;
  --ink-mute: #6c7872;
  --forest: #0f2a1e;
  --forest-2: #16382a;
  --forest-3: #1d4634;
  --brand: #3db54a;
  --brand-d: #2f9a3c;
  --lime: #9bd45c;
  --on-dark: #eaf0e8;
  --on-dark-soft: #a9b8ac;
  --line: rgba(21, 32, 26, 0.12);
  --line-2: rgba(21, 32, 26, 0.08);
  --line-light:rgba(246, 242, 233, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "Stack Sans Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.btn {
  --pad: 16px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 181, 74, 0.35);
}
.btn--block {
  width: 100%;
}
.btn--brand {
  background: var(--brand);
  color: #06180e;
  box-shadow: 0 12px 28px -12px rgba(61, 181, 74, 0.7);
}
.btn--brand:hover {
  background: var(--lime);
}
.btn--neutral {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn--neutral:hover {
  border-color: rgba(21, 32, 26, 0.32);
  background: #fff;
}
.btn svg {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  stroke-width: 1.9;
  transition: transform 0.3s var(--ease);
}
.btn--brand:hover svg:last-child {
  transform: translateX(3px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-d);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
}
.eyebrow--light {
  color: var(--lime);
}
.eyebrow--light::before {
  background: var(--lime);
}

.auth {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
  min-height: 100dvh;
}
@media (max-width: 860px) {
  .auth {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

.auth__brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--on-dark);
  padding: clamp(32px, 4vw, 56px);
  background: radial-gradient(130% 90% at 86% -8%, var(--forest-3) 0%, transparent 55%), linear-gradient(180deg, var(--forest-2) 0%, var(--forest) 100%);
  padding-top: max(clamp(32px, 4vw, 56px), env(safe-area-inset-top));
}
@media (max-width: 860px) {
  .auth__brand {
    padding: 22px 20px calc(26px + env(safe-area-inset-top)) 20px;
    padding-top: max(22px, env(safe-area-inset-top));
    min-height: 0;
  }
}
.auth__brand-topo {
  position: absolute;
  top: -14%;
  right: -16%;
  width: min(620px, 78%);
  aspect-ratio: 1;
  color: var(--lime);
  opacity: 0.13;
  z-index: -1;
}
.auth__brand-topo svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 860px) {
  .auth__brand-topo {
    opacity: 0.1;
    top: -40%;
    right: -30%;
    width: 70%;
  }
}
.auth__brand::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: -130px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(61, 181, 74, 0.4), transparent 70%);
  filter: blur(22px);
  z-index: -1;
}
@media (max-width: 860px) {
  .auth__brand::after {
    display: none;
  }
}

.auth__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 860px) {
  .auth__top {
    justify-content: center;
  }
}

.auth__logo {
  height: 38px;
  width: auto;
}
@media (max-width: 860px) {
  .auth__logo {
    height: 34px;
  }
}

.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-dark-soft);
  transition: color 0.25s, transform 0.3s var(--ease);
}
.auth__back svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 0.3s var(--ease);
}
.auth__back:hover {
  color: var(--lime);
}
.auth__back:hover svg {
  transform: translateX(-3px);
}
@media (max-width: 860px) {
  .auth__back {
    display: none;
  }
}

.auth__lead {
  margin-top: auto;
  margin-bottom: auto;
  padding: clamp(40px, 6vw, 72px) 0;
  max-width: 44ch;
}
@media (max-width: 860px) {
  .auth__lead {
    margin: 0;
    padding: 18px 0 4px;
    max-width: none;
    text-align: center;
  }
}

.auth__title {
  font-family: "Google Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 18px;
}
.auth__title em {
  font-style: italic;
  color: var(--lime);
}
@media (max-width: 860px) {
  .auth__title {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
    margin-top: 12px;
  }
}

.auth__sub {
  margin-top: 18px;
  color: var(--on-dark-soft);
  font-size: 1.04rem;
}
@media (max-width: 860px) {
  .auth__sub {
    display: none;
  }
}

.auth__points {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  gap: 13px;
}
.auth__points li {
  position: relative;
  padding-left: 30px;
  color: var(--on-dark);
  font-size: 0.98rem;
}
.auth__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .auth__points {
    display: none;
  }
}

.auth__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--on-dark-soft);
}
.auth__foot svg {
  width: 17px;
  height: 17px;
  color: var(--lime);
}
@media (max-width: 860px) {
  .auth__foot {
    display: none;
  }
}

.auth__main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(40px, 5vw, 72px) clamp(22px, 4vw, 56px);
  background: var(--paper);
}
@media (max-width: 860px) {
  .auth__main {
    justify-content: flex-start;
    padding: 30px 20px calc(40px + env(safe-area-inset-bottom));
  }
}

.auth__copyright {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
@media (max-width: 860px) {
  .auth__copyright {
    position: static;
    margin-top: 36px;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.authform {
  width: 100%;
  max-width: 410px;
}

.authform__back {
  display: none;
}
@media (max-width: 860px) {
  .authform__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-mute);
  }
  .authform__back svg {
    width: 17px;
    height: 17px;
  }
  .authform__back:hover {
    color: var(--brand-d);
  }
}

.authform__head {
  margin-bottom: 28px;
}

.authform__title {
  font-family: "Google Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 14px;
}

.authform__hint {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field__aux {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-d);
  transition: color 0.25s;
}
.field__aux:hover {
  color: var(--forest-2);
  text-decoration: underline;
}

.field__control {
  position: relative;
  display: block;
}

.field__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--ink-mute);
  pointer-events: none;
  stroke-width: 1.9;
  transition: color 0.25s;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 46px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input::placeholder {
  color: var(--ink-mute);
}
.field input:hover {
  border-color: rgba(21, 32, 26, 0.22);
}
.field input:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61, 181, 74, 0.18);
}
.field input:focus ~ .field__icon, .field input:focus + .field__icon {
  color: var(--brand-d);
}
.field input:user-invalid {
  border-color: #c0492f;
  box-shadow: 0 0 0 3px rgba(192, 73, 47, 0.14);
}

.field__control:focus-within .field__icon {
  color: var(--brand-d);
}

.field--pw input {
  padding-right: 50px;
}

.pwtoggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-mute);
  transition: color 0.2s, background 0.2s;
}
.pwtoggle:hover {
  color: var(--ink);
  background: rgba(21, 32, 26, 0.05);
}
.pwtoggle:focus-visible {
  outline: none;
  color: var(--brand-d);
  box-shadow: 0 0 0 2px rgba(61, 181, 74, 0.4);
}
.pwtoggle svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}
.pwtoggle .pwtoggle__hide {
  display: none;
}
.pwtoggle.is-on .pwtoggle__show {
  display: none;
}
.pwtoggle.is-on .pwtoggle__hide {
  display: inline-flex;
}

.authform__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 24px;
  flex-wrap: wrap;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  user-select: none;
  cursor: pointer;
}
.remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
}

.authform__status {
  display: none;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}
.authform__status svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.authform__status.is-shown {
  display: flex;
}
.authform__status.is-error {
  color: #8f2f1c;
  background: rgba(192, 73, 47, 0.1);
  border: 1px solid rgba(192, 73, 47, 0.25);
}
.authform__status.is-error svg {
  color: #c0492f;
}
.authform__status.is-ok {
  color: var(--forest-2);
  background: rgba(61, 181, 74, 0.12);
  border: 1px solid rgba(61, 181, 74, 0.3);
}
.authform__status.is-ok svg {
  color: var(--brand-d);
}

.authform__submit {
  margin-top: 4px;
}
.authform__submit .authform__submit-spin {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(6, 24, 14, 0.3);
  border-top-color: #06180e;
  border-radius: 50%;
}
.authform__submit.is-loading {
  pointer-events: none;
  opacity: 0.9;
}
.authform__submit.is-loading .authform__submit-label,
.authform__submit.is-loading svg {
  display: none;
}
.authform__submit.is-loading .authform__submit-spin {
  display: inline-block;
  animation: authspin 0.7s linear infinite;
}

@keyframes authspin {
  to {
    transform: rotate(360deg);
  }
}
.authdiv {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--ink-mute);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.authdiv::before, .authdiv::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.gicon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.authform__alt {
  margin-top: 26px;
  text-align: center;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.authform__alt a {
  font-weight: 600;
  color: var(--brand-d);
}
.authform__alt a:hover {
  color: var(--forest-2);
  text-decoration: underline;
}

.pwmeter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
}
.pwmeter[hidden] {
  display: none;
}
.pwmeter__track {
  display: flex;
  flex: 1;
  gap: 5px;
}
.pwmeter__track span {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.3s var(--ease);
}
.pwmeter__label {
  min-width: 46px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.pwmeter.is-1 .pwmeter__track span:nth-child(-n+1) {
  background: #c0492f;
}
.pwmeter.is-1 .pwmeter__label {
  color: #c0492f;
}
.pwmeter.is-2 .pwmeter__track span:nth-child(-n+2) {
  background: #d98a2b;
}
.pwmeter.is-2 .pwmeter__label {
  color: #b9741f;
}
.pwmeter.is-3 .pwmeter__track span:nth-child(-n+3) {
  background: var(--brand-d);
}
.pwmeter.is-3 .pwmeter__label {
  color: var(--brand-d);
}
.pwmeter.is-4 .pwmeter__track span {
  background: #1c7d2c;
}
.pwmeter.is-4 .pwmeter__label {
  color: #1c7d2c;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 22px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}
.terms input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--brand);
  cursor: pointer;
}
.terms a {
  font-weight: 600;
  color: var(--brand-d);
}
.terms a:hover {
  color: var(--forest-2);
  text-decoration: underline;
}

.field__prefix {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px 0 16px;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 600;
  border-right: 1px solid var(--line);
  pointer-events: none;
}
.field__prefix svg {
  width: 17px;
  height: 17px;
  color: #25d366;
}

.field--phone input {
  padding-left: 96px;
}

.otp {
  display: flex;
  gap: clamp(7px, 2.4vw, 12px);
  margin: 6px 0 2px;
}
.otp__digit {
  flex: 1 1 0;
  min-width: 0;
  height: clamp(54px, 14vw, 64px);
  padding: 0;
  text-align: center;
  font-family: "Google Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 5.6vw, 1.7rem);
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.otp__digit:hover {
  border-color: rgba(21, 32, 26, 0.22);
}
.otp__digit:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61, 181, 74, 0.18);
}
.otp__digit.is-filled {
  border-color: var(--brand-d);
  background: var(--paper);
}
.otp__resend {
  margin-top: 20px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.otp__resend-btn {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--brand-d);
}
.otp__resend-btn:disabled {
  color: var(--ink-mute);
  cursor: default;
}
.otp__resend-btn:not(:disabled):hover {
  text-decoration: underline;
}

.authdone {
  width: 100%;
  max-width: 410px;
  text-align: center;
}
.authdone[hidden] {
  display: none;
}
.authdone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--brand-d);
  background: rgba(61, 181, 74, 0.14);
}
.authdone__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.2;
}
.authdone__title {
  font-family: "Google Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.authdone__text {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.authdone .btn {
  margin-top: 28px;
}
.authdone.is-shown {
  animation: authIn 0.6s var(--ease) both;
}

.authform__hint strong {
  color: var(--ink);
  font-weight: 600;
}

@keyframes authIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .auth__lead,
  .auth__top,
  .auth__foot,
  .authform > * {
    opacity: 0;
    animation: authIn 0.7s var(--ease) forwards;
  }
  .auth__top {
    animation-delay: 0.05s;
  }
  .auth__lead {
    animation-delay: 0.14s;
  }
  .auth__foot {
    animation-delay: 0.22s;
  }
  .authform__back {
    animation-delay: 0.1s;
  }
  .authform__head {
    animation-delay: 0.16s;
  }
  .authform__status {
    animation-delay: 0.18s;
  }
  .field {
    animation-delay: 0.22s;
  }
  .field + .field {
    animation-delay: 0.28s;
  }
  .authform__row {
    animation-delay: 0.32s;
  }
  .otp {
    animation-delay: 0.26s;
  }
  .terms {
    animation-delay: 0.32s;
  }
  .otp__resend {
    animation-delay: 0.4s;
  }
  .authform__submit {
    animation-delay: 0.36s;
  }
  .authdiv {
    animation-delay: 0.4s;
  }
  .btn--neutral {
    animation-delay: 0.44s;
  }
  .authform__alt {
    animation-delay: 0.48s;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
html.is-loading {
  overflow: hidden;
}

.pageloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: radial-gradient(125% 125% at 50% 36%, var(--forest-3) 0%, var(--forest-2) 40%, var(--forest) 100%);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.pageloader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 44%, #000 30%, transparent 80%);
  mask-image: radial-gradient(closest-side at 50% 44%, #000 30%, transparent 80%);
  pointer-events: none;
}
.pageloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.pageloader.is-done .pageloader__logo,
.pageloader.is-done .pageloader__bar {
  animation-play-state: paused;
}

.pageloader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 24px;
  text-align: center;
}

.pageloader__logo {
  width: clamp(150px, 32vw, 208px);
  height: auto;
  animation: pageloader-breathe 2.6s ease-in-out infinite;
}

.pageloader__track {
  position: relative;
  width: clamp(150px, 46vw, 200px);
  height: 2px;
  border-radius: 999px;
  background: var(--line-light);
  overflow: hidden;
}

.pageloader__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--brand) 35%, var(--lime) 65%, transparent);
  animation: pageloader-shuttle 1.15s var(--ease) infinite;
}

@keyframes pageloader-breathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes pageloader-shuttle {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(240%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pageloader__bar {
    width: 100%;
    background: var(--brand);
  }
}
