:root {
  --mint: #6fd1b4;
  --mint-dark: #1f8f63;
  --green-deep: #0f5c41;
  --veraxa-dark: #081d18;
  --logo-lime: #c7db4a;
  --paper: #f8faf9;
  --line: #e7ebe9;
  --ink: #0c1f1a;
  --ink-soft: #6b756f;
  --ink-faint: #9aa39d;
}
/* * {
  box-sizing: border-box;
}
html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
} */

body {  
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

.page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: fixed;
  top: 0;
  transform: translateX(100%);
  -webkit-transition: all 0.3s ease-in;
  transition: all 0.3s ease-in;
  z-index: 99;
}
.page.login_open {
    transform: translateX(0);
}

input,
select {
  height: auto;
}

/* ---------------- LEFT: hero / marketing panel ---------------- */
.close_login {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #ddd;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    cursor: pointer;
}
.hero-panel {
  flex: 1 1 48%;
  background: linear-gradient(
    160deg,
    var(--veraxa-dark) 0%,
    #0d2a22 55%,
    #0f5c41 150%
  );
  color: #fff;
  padding: 52px 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: relative;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 15%,
    rgba(111, 209, 180, 0.16),
    transparent 55%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 320px;
}
.hero-vial-wrap {
  width: calc(100% - 330px);
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
}
.hero-logo img {
  width: 120px;
}
.hero-logo-text {
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
.hero-logo-text small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--logo-lime);
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 16px;
}
.hero-title .accent {
  color: var(--mint);
}
.hero-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 26px;
}

.hero-vial-wrap img {
  width: 600px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
  margin-top: 50px;
}
.hero-fact {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.hero-fact svg {
  width: 16px;
  height: 16px;
  color: var(--mint);
  flex-shrink: 0;
}

/* ---------------- RIGHT: passwordless auth panel ---------------- */
.form-panel {
  flex: 1 1 52%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
.form-inner {
  width: 100%;
  max-width: 450px;
  position: relative;
  min-height: 340px;
}


.auth-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.auth-step.leaving {
  opacity: 0;
  transform: translateX(-16px);
}

.auth-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.auth-icon svg {
  width: 24px;
  height: 24px;
  color: var(--mint-dark);
}

.auth-title {
  font-size: 25px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}
p.auth-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
p.auth-sub b {
  color: var(--ink);
  font-weight: 700;
}
.auth-sub-info {
    color: var(--ink-soft);
    margin: 10px 0 20px;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.email-input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.email-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
}
.email-input-wrap input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 14px 14px 14px 40px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  height: auto;
}
.email-input-wrap input:focus {
  outline: none;
  border-color: var(--mint-dark);
}
.email-status {
  font-size: 12.5px;
  font-weight: 600;
  margin: -4px 0 16px;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.email-status.error {
  color: #de3636;
}
.email-status.found {
  color: var(--mint-dark);
}
.email-status.new {
  color: var(--ink-soft);
}
.email-status svg {
  width: 13px;
  height: 13px;
}

.consent-block {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}
.consent-block.open {
  max-height: 160px;
  opacity: 1;
  margin-bottom: 18px;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
}
.consent-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.15s ease;
}
.consent-box svg {
  width: 11px;
  height: 11px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.consent-row input:checked + .consent-box {
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}
.consent-row input:checked + .consent-box svg {
  opacity: 1;
}
.consent-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.inline-otp-block {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}
.inline-otp-block.open {
  max-height: 260px;
  opacity: 1;
}

.btn-continue {
  width: 100%;
  background: var(--veraxa-dark);
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 15px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
}
.btn-continue:hover {
  background: #0d2a22;
}
.btn-continue:disabled {
  background: var(--ink-faint);
  cursor: not-allowed;
}
.btn-continue .btn-label {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.btn-continue.is-loading .btn-label {
  opacity: 0;
}
.btn-spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: btnspin 0.7s linear infinite;
}
.btn-continue.is-loading .btn-spinner {
  opacity: 1;
}
@keyframes btnspin {
  to {
    transform: rotate(360deg);
  }
}

.otp-row {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
  padding: 0 4px;
}
.auth-step .otp-row .otp-input[type="text"] {
  width: 50px;
  height: 58px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.otp-input:focus {
  outline: none;
  border-color: var(--mint-dark);
  background: #f3fbf8;
}

.otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  font-size: 12.5px;
}
.otp-change-email {
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
}
.otp-change-email:hover {
  color: var(--ink);
}
.otp-resend {
  color: var(--mint-dark);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.otp-resend:hover {
  text-decoration: underline;
}
.otp-resend.disabled {
  color: var(--ink-faint);
  cursor: default;
  pointer-events: none;
}

.success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-check svg {
  width: 30px;
  height: 30px;
  color: #fff;
}
.success-check svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw 0.4s ease 0.1s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.footer-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 24px;
  line-height: 1.5;
}
.mobile_kit {
  display: none;
}
@media (max-width: 1024px) {
  .page {
    flex-direction: column;
    z-index: 99999;
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .form-panel {
    width: 100%;
    flex: none;

    display: block;

    position: relative;

    height: auto;
    min-height: 0;

    padding: 36px 28px;

    overflow: visible;
  }

  .form-inner {
    width: 100%;
    max-width: 400px;

    position: relative;

    min-height: 0;
    height: auto;

    margin: 0 auto;
  }

  .auth-step {
    position: relative;
    top: auto;
    left: auto;

    width: 100%;
  }

  .auth-step:not(.active) {
    display: none;
  }

  .auth-step.active {
    position: relative;
    width: 100%;
  }
}

@media (max-width: 768px) {
    .hero-panel{
        padding: 20px;
    }
    .hero-logo{
        margin-bottom: 10px;
    }
    .hero-eyebrow{
        margin-bottom: 10px;
    }
    .hero-title {
        font-size: 23px;
        margin: 0 0 10px;
    }
    .hero-sub{
        margin-bottom: 10px;
    }
    .hero-facts{
        margin-top: 20px;
    }
    .auth-group {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
    }
    .auth-icon {
        margin: 0;
        min-width: 40px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .auth-icon svg {
        width: 20px;
        height: 20px;
    }
    .auth-title{
        font-size: 22px;
        margin: 0;
    }
  .hero-vial-wrap {
    display: none;
  }
  .form-panel {
    display: block;
    width: 100%;

    height: auto;
    min-height: 0;

    padding: 24px 16px;

    overflow: visible;
  }

  .form-inner {
    width: 100%;
    max-width: 400px;

    height: auto;
    min-height: 0;

    margin: 0 auto;
  }

  .auth-step {
    position: relative;

    top: auto;
    left: auto;

    width: 100%;
  }

  .auth-step:not(.active) {
    display: none;
  }

  .auth-step.active {
    position: relative;
  }
  .mobile_kit {
    display: block;
    max-width: 80%;
    margin: 30px auto 20px;
  }
}
