/* FILE PURPOSE: Authentication page layout, forms, validation states, and account screens. */
/* Authentication pages: split-panel sign in and account creation. */
.auth-page {
  min-height: 100vh;
  background: #f8faf7;
}
.auth-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 100vh;
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 35px clamp(34px, 5vw, 76px) 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 78% 25%,
      rgba(111, 176, 139, 0.28),
      transparent 33%
    ),
    linear-gradient(150deg, #173f31 0%, #235841 58%, #2e7254 100%);
}
.brand-light {
  color: white;
}
.brand-light .brand-mark {
  color: var(--green-900);
  background: #d6eddf;
  box-shadow: none;
}
.brand-light > span:last-child > span {
  color: #a9d9bc;
}
.auth-aside-content {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: auto 0;
  padding: 50px 0;
}
.eyebrow-light {
  color: #b1d9c0;
}
.auth-aside-content h1 {
  margin: 16px 0;
  color: white;
  font: 800 clamp(42px, 5.5vw, 70px)/1.08 var(--font-display);
  letter-spacing: -3px;
}
.auth-aside-content h1 span {
  color: #9bd1af;
}
.auth-aside-content p {
  max-width: 350px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.8;
}
.auth-aside-art {
  position: relative;
  height: 160px;
  margin-top: 33px;
}
.auth-art-line {
  position: absolute;
  top: 10px;
  left: 7%;
  width: 78%;
  height: 120px;
  border: 2px dashed rgba(181, 225, 196, 0.55);
  border-right: 0;
  border-bottom: 0;
  border-radius: 65% 0 0 0;
  transform: rotate(8deg);
}
.auth-art-point {
  position: absolute;
  display: block;
  width: 13px;
  height: 13px;
  background: #b2e0c1;
  border: 3px solid #39795a;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(178, 224, 193, 0.12);
}
.point-one {
  top: 108px;
  left: 5%;
}
.point-two {
  top: 40px;
  left: 42%;
}
.point-three {
  top: 12px;
  right: 12%;
  background: #f1ae82;
  border-color: #5a8969;
}
.auth-art-note {
  position: absolute;
  right: 0;
  bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: #d9efe0;
  background: rgba(9, 40, 27, 0.2);
  border: 1px solid rgba(203, 238, 214, 0.2);
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
}
.auth-art-note svg {
  width: 15px;
  height: 15px;
}
.auth-aside-footer {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
}
.auth-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 78px 45px;
}
.back-link {
  position: absolute;
  top: 35px;
  left: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #77857c;
  font-size: 11px;
  font-weight: 700;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--green-700);
}
.back-link svg {
  width: 15px;
  height: 15px;
}
.auth-form-wrap {
  width: min(100%, 430px);
  margin: auto;
}
.auth-form-heading {
  margin-bottom: 27px;
}
.auth-form-heading h2 {
  margin: 9px 0 6px;
  color: var(--green-950);
  font: 800 30px var(--font-display);
  letter-spacing: -1.2px;
}
.auth-form-heading p {
  margin: 0;
  color: #87938b;
  font-size: 12px;
}
.auth-form {
  display: grid;
  gap: 9px;
}
.auth-form label {
  margin-top: 7px;
  color: #35473d;
  font-size: 11px;
  font-weight: 800;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  background: white;
  border: 1px solid #e2eae3;
  border-radius: 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input-wrap:focus-within {
  border-color: #75b594;
  box-shadow: 0 0 0 3px rgba(59, 155, 114, 0.09);
}
.input-wrap > svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-left: 14px;
  color: #9ba99f;
}
.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}
.input-wrap input::placeholder {
  color: #a8b2ab;
}
.password-toggle {
  display: grid;
  flex: 0 0 41px;
  height: 41px;
  place-items: center;
  margin-right: 3px;
  color: #839188;
  background: transparent;
  border: 0;
  border-radius: 9px;
}
.password-toggle:hover {
  color: var(--green-700);
  background: var(--green-50);
}
.password-toggle svg {
  width: 17px;
  height: 17px;
}
.form-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-two-columns > div {
  display: grid;
  gap: 9px;
}
.form-two-columns .input-wrap input {
  padding-right: 8px;
}
.form-message {
  min-height: 17px;
  margin: 2px 0 0;
  color: #b44d43;
  font-size: 11px;
  line-height: 1.5;
}
.form-message.success {
  color: var(--green-700);
}
.auth-form .button {
  margin-top: 3px;
}
.auth-switch {
  margin: 20px 0 0;
  color: #7d8981;
  text-align: center;
  font-size: 11px;
}
.auth-switch a {
  color: var(--green-700);
  font-weight: 800;
}
.prototype-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 24px 0 0;
  color: #a0aaa3;
  font-size: 9px;
  text-align: center;
  line-height: 1.5;
}
.prototype-note svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}
.auth-mobile-brand {
  display: none;
}
.auth-main-signup {
  padding-top: 76px;
  padding-bottom: 50px;
}
.auth-main-signup .auth-form-wrap {
  max-width: 465px;
}
.auth-main-signup .auth-form {
  gap: 7px;
}
.auth-main-signup .input-wrap,
.auth-main-signup .input-wrap input {
  min-height: 44px;
  height: 44px;
}

/* ==========================================
   PASSWORD QUALITY AND CONFIRMATION
   The checklist and strength meter update as the user types.
========================================== */
.password-feedback {
  margin: -1px 0 3px;
  padding: 11px 12px 10px;
  background: #f7faf7;
  border: 1px solid #e6eee7;
  border-radius: 12px;
}
.password-strength-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #78857d;
  font-size: 10px;
  font-weight: 700;
}
.password-strength-heading strong {
  color: #98a39b;
  font-size: 10px;
}
.password-strength-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  background: #e5ece6;
  border-radius: 10px;
}
.password-strength-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: #d86c5d;
  border-radius: inherit;
  transition:
    width 0.22s ease,
    background 0.22s ease;
}
.password-strength-track[data-level="2"] > span {
  background: #e5a34e;
}
.password-strength-track[data-level="3"] > span {
  background: #82ad62;
}
.password-strength-track[data-level="4"] > span {
  background: #32966a;
}
.password-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.password-rules li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #87938b;
  font-size: 9px;
  line-height: 1.35;
  transition: color 0.18s ease;
}
.password-rules li svg {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  color: #aab5ad;
}
.password-rules li.is-valid {
  color: #2c865b;
  font-weight: 700;
}
.password-rules li.is-valid svg {
  color: #2c9966;
}
.password-match {
  min-height: 12px;
  margin: -2px 0 0;
  font-size: 10px;
  line-height: 1.3;
}
.password-match.is-match {
  color: #2e8b60;
}
.password-match.is-mismatch {
  color: #c05b4e;
}
.auth-theme-toggle {
  position: absolute;
  top: 26px;
  right: 35px;
}
.brand-symbol {
  flex: 0 0 auto;
  width: 47px;
  height: 28px;
  object-fit: contain;
}
.brand-symbol-contrast {
  width: 48px;
  height: 29px;
}

@media (max-width: 520px) {
  .password-rules {
    grid-template-columns: 1fr 1fr;
    gap: 7px 8px;
  }
  .auth-theme-toggle {
    top: 18px;
    right: 18px;
  }
}
