:root {
  --auth-navy: #0d1f18;
  --auth-green: #0a7f4f;
  --auth-soft: #eef7f2;
  --auth-line: #dfe7e2;
  --auth-muted: #66736d;
}

.auth-page {
  min-height: calc(100vh - 74px);
  padding: 28px 20px 48px;
  background: #f7f7f4;
}

.auth-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.95fr);
  min-height: min(760px, calc(100vh - 130px));
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--auth-line);
  box-shadow: 0 18px 46px rgba(13, 31, 24, .1);
}

.auth-left {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding: 44px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.auth-left-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 28% center;
  z-index: 0;
}

.auth-left-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 18, 14, .28) 0%, rgba(8, 18, 14, .52) 42%, rgba(8, 18, 14, .78) 100%),
    linear-gradient(90deg, rgba(8, 18, 14, .18) 0%, rgba(8, 18, 14, .08) 100%);
  pointer-events: none;
}

.auth-left-content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.auth-eyebrow {
  margin: 0 0 18px;
  color: #b7efcf !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-left h1 {
  max-width: 500px;
  margin: 0 0 18px;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 900;
}

.auth-left-lead {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 17px;
  line-height: 1.45;
}

.auth-features {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.auth-features div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.auth-features strong {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-features span {
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.auth-card {
  padding: clamp(36px, 4vw, 56px);
  align-self: center;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: clamp(32px, 3vw, 40px);
  letter-spacing: -.04em;
  font-weight: 900;
}

.auth-sub {
  margin: 0 0 28px;
  color: var(--auth-muted);
  line-height: 1.55;
}

.auth-card a {
  color: var(--auth-green);
  font-weight: 750;
}

.auth-card a:focus-visible,
.link-btn:focus-visible,
.password-toggle:focus-visible {
  outline: 3px solid rgba(10, 127, 79, .35);
  outline-offset: 2px;
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 14px 20px;
}

.login-pane {
  display: none;
  gap: 14px;
}

.login-pane.active {
  display: grid;
}

label {
  display: grid;
  gap: 7px;
  color: var(--auth-navy);
  font-size: 13px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--auth-line);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  background: #fff;
}

input:focus {
  border-color: var(--auth-green);
  box-shadow: 0 0 0 4px rgba(10, 127, 79, .12);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--auth-green);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
}

.link-btn {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--auth-green);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.terms {
  margin: 20px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

.terms a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--auth-navy);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(13, 31, 24, .22);
  transition: .2s ease;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1100px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr);
  }
}

@media (max-width: 900px) {
  .auth-page {
    padding: 20px 16px 36px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-card {
    order: 1;
    padding: 28px 22px 32px;
    align-self: stretch;
  }

  .auth-left {
    order: 2;
    min-height: 280px;
    padding: 28px 22px;
    justify-content: flex-end;
  }

  .auth-left-media {
    object-position: center 35%;
  }

  .auth-left h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .auth-features {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding: 12px 12px 28px;
  }

  .auth-shell {
    border-radius: 8px;
  }

  .auth-card {
    padding: 24px 18px 28px;
  }

  .auth-card h2 {
    font-size: 30px;
  }

  .auth-sub {
    margin-bottom: 22px;
    font-size: 15px;
  }

  .auth-left {
    min-height: 220px;
    padding: 22px 18px;
  }

  .auth-left-lead {
    font-size: 15px;
  }

  .auth-features {
    display: none;
  }
}
