:root {
  --auth-ink: #102434;
  --auth-muted: #667581;
  --auth-green: #237657;
  --auth-green-deep: #175f45;
  --auth-mint: #eef7f2;
  --auth-border: #d5ddd9;
  --auth-canvas: #fffefa;
}

html,
body.auth-v2-shell {
  min-height: 100%;
}

body.auth-v2-shell {
  margin: 0;
  overflow-x: hidden;
  background: var(--auth-canvas);
  color: var(--auth-ink);
  font-family: "Manrope", sans-serif;
}

.auth-v2 {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(28rem, 45%) minmax(34rem, 55%);
  background: var(--auth-canvas);
}

.auth-v2__visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #cde1ea url("../images/auth-journey.jpg") center center / cover no-repeat;
}

.auth-v2__visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 17%;
  background: linear-gradient(180deg, rgba(239, 248, 243, .7), rgba(224, 240, 231, .86));
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .28);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200' preserveAspectRatio='none'%3E%3Cpath d='M0 74 C165 8 330 8 500 74 C655 136 810 126 1000 38 L1000 200 L0 200 Z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 200' preserveAspectRatio='none'%3E%3Cpath d='M0 74 C165 8 330 8 500 74 C655 136 810 126 1000 38 L1000 200 L0 200 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.auth-v2__visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(230, 244, 250, .12), transparent 48%, rgba(225, 242, 233, .2));
}

.auth-v2__caption {
  position: absolute;
  z-index: 1;
  left: clamp(2.25rem, 4vw, 4.75rem);
  bottom: clamp(2.5rem, 6vh, 4.75rem);
  max-width: 13rem;
  margin: 0;
  padding-left: 1.45rem;
  color: #273f49;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
}

.auth-v2__caption::before {
  content: "";
  position: absolute;
  inset: .1rem auto .1rem 0;
  width: 2px;
  border-radius: 2px;
  background: #4f9a7d;
}

.auth-v2__main {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem clamp(3rem, 8vw, 9rem);
  background:
    radial-gradient(circle at 100% 0, rgba(245, 239, 224, .38), transparent 31%),
    var(--auth-canvas);
}

.auth-v2__flash {
  position: fixed;
  z-index: 20;
  top: 1.5rem;
  right: 1.5rem;
  width: min(26rem, calc(100vw - 3rem));
}

.auth-v2__content {
  width: min(100%, 35rem);
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.auth-v2__content--login {
  width: min(100%, 35rem);
}

.auth-v2__brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.25rem);
  color: var(--auth-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
}

.auth-v2__brand:hover {
  color: var(--auth-ink);
}

.auth-v2__brand-mark {
  width: 3rem;
  height: 2.3rem;
  fill: none;
  stroke: var(--auth-green);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v2__back {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin: -1.25rem 0 1.75rem;
  border: 1px solid #6ba78f;
  border-radius: 50%;
  color: var(--auth-ink);
  transition: background .18s ease, transform .18s ease;
}

.auth-v2__back:hover {
  background: var(--auth-mint);
  color: var(--auth-ink);
  transform: translateX(-2px);
}

.auth-v2__back svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v2__intro {
  margin-bottom: 2.1rem;
}

.auth-v2__eyebrow {
  margin: 0 0 1rem !important;
  color: var(--auth-green) !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.auth-v2__intro h1 {
  margin: 0 0 .75rem;
  color: var(--auth-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.35rem, 3.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.auth-v2__intro > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--auth-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.auth-v2__form {
  display: grid;
  gap: 1.35rem;
}

.auth-v2__field {
  display: grid;
  gap: .55rem;
  color: #2d3d49;
  font-size: .98rem;
  font-weight: 650;
}

.auth-v2__field > input,
.auth-v2__password-wrap {
  min-height: 3.85rem;
  border: 1px solid #cbd4d5;
  border-radius: .75rem;
  background: rgba(255, 255, 255, .82);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-v2__field > input,
.auth-v2__password-wrap input {
  width: 100%;
  padding: 0 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--auth-ink);
  font: inherit;
  font-weight: 550;
}

.auth-v2__field > input:focus,
.auth-v2__password-wrap:focus-within {
  border-color: #4e9679;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 127, 94, .1);
}

.auth-v2__field input::placeholder {
  color: #8b979d;
}

.auth-v2__password-wrap {
  display: flex;
  align-items: center;
}

.auth-v2__visibility {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #61717b;
}

.auth-v2__visibility svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v2__forgot {
  justify-self: end;
  margin-top: -.75rem;
  color: var(--auth-green);
  font-weight: 650;
  text-decoration: none;
}

.auth-v2__primary {
  min-height: 3.85rem;
  border: 0;
  border-radius: .72rem;
  background: linear-gradient(110deg, var(--auth-green), #287e5c);
  box-shadow: 0 13px 28px rgba(28, 103, 75, .12);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-v2__primary:hover {
  filter: brightness(.97);
  box-shadow: 0 16px 34px rgba(28, 103, 75, .2);
  transform: translateY(-1px);
}

.auth-v2__separator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.45rem 0;
  color: #7c888f;
}

.auth-v2__separator::before,
.auth-v2__separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dce1df;
}

.auth-v2__google,
.auth-v2__google .google-signin-button {
  width: 100%;
  max-width: none;
}

.auth-v2__provider-note {
  margin: 1.35rem 0 0;
  color: var(--auth-muted);
  font-size: .85rem;
  text-align: center;
}

.auth-v2__text-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.5rem;
  color: var(--auth-green);
  font-weight: 700;
  text-decoration: none;
}

.auth-v2__info,
.auth-v2__invalid-link {
  margin-top: 2rem;
  border: 1px solid #d2dfd8;
  border-radius: .75rem;
  background: linear-gradient(110deg, #f4f9f6, #f9fbf9);
}

.auth-v2__info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
}

.auth-v2__info-icon {
  width: 3.3rem;
  height: 3.3rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #61a086;
  border-radius: 50%;
  color: var(--auth-green);
}

.auth-v2__info-icon svg {
  width: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-v2__info strong,
.auth-v2__info small {
  display: block;
}

.auth-v2__info strong {
  margin-bottom: .3rem;
  color: var(--auth-ink);
  font-size: 1rem;
}

.auth-v2__info small {
  color: var(--auth-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.auth-v2__invalid-link {
  display: grid;
  gap: .35rem;
  padding: 1.35rem;
  color: var(--auth-muted);
}

.auth-v2__invalid-link strong {
  color: var(--auth-ink);
}

.auth-v2__invalid-link a {
  width: fit-content;
  margin-top: .45rem;
  color: var(--auth-green);
  font-weight: 700;
}

.auth-v2__strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: .4rem;
  margin-top: -.85rem;
}

.auth-v2__strength > span {
  height: .42rem;
  border-radius: 999px;
  background: #e4e7e6;
}

.auth-v2__strength strong {
  min-width: 7.5rem;
  margin-left: .25rem;
  color: var(--auth-muted);
  font-size: .86rem;
  font-weight: 700;
  text-align: right;
}

.auth-v2__strength[data-strength="weak"] > span:nth-child(-n+1),
.auth-v2__strength[data-strength="fair"] > span:nth-child(-n+2),
.auth-v2__strength[data-strength="strong"] > span:nth-child(-n+3),
.auth-v2__strength[data-strength="excellent"] > span:nth-child(-n+4) {
  background: var(--auth-green);
}

.auth-v2__strength[data-strength="weak"] strong {
  color: #ad6e2f;
}

.auth-v2__strength[data-strength="fair"] strong,
.auth-v2__strength[data-strength="strong"] strong,
.auth-v2__strength[data-strength="excellent"] strong {
  color: var(--auth-green);
}

.auth-v2__match {
  display: none;
  color: var(--auth-green);
  font-size: 1.2rem;
  font-weight: 800;
}

.auth-v2__match.is-visible {
  display: inline;
}

.auth-v2__requirements {
  display: grid;
  gap: .45rem;
  margin-top: -.25rem;
  color: var(--auth-muted);
}

.auth-v2__requirements strong {
  margin-bottom: .15rem;
  color: var(--auth-green);
  font-size: .9rem;
}

.auth-v2__requirements span {
  color: #a5afac;
  font-size: .9rem;
}

.auth-v2__requirements span.is-valid {
  color: var(--auth-green);
}

.auth-v2__requirements em {
  margin-left: .45rem;
  color: var(--auth-muted);
  font-style: normal;
}

.auth-v2__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(2.25rem, 5vh, 4rem);
  color: #859097;
  font-size: .82rem;
}

.auth-v2__footer i {
  width: 1px;
  height: 1rem;
  background: #c8cecb;
}

html[data-theme="dark"] body.auth-v2-shell {
  --auth-ink: #edf5f2;
  --auth-muted: #a6b5b1;
  --auth-green: #6fc4a5;
  --auth-green-deep: #8ed9bc;
  --auth-mint: #173229;
  --auth-border: rgba(167, 205, 190, .2);
  --auth-canvas: #0d1b25;
}

html[data-theme="dark"] .auth-v2__main {
  background: radial-gradient(circle at 100% 0, rgba(31, 69, 61, .2), transparent 32%), #0d1b25;
}

html[data-theme="dark"] .auth-v2__field,
html[data-theme="dark"] .auth-v2__back {
  color: #dfe9e6;
}

html[data-theme="dark"] .auth-v2__field > input,
html[data-theme="dark"] .auth-v2__password-wrap {
  border-color: rgba(174, 207, 198, .22);
  background: #132632;
}

html[data-theme="dark"] .auth-v2__field > input:focus,
html[data-theme="dark"] .auth-v2__password-wrap:focus-within {
  border-color: #64b698;
  background: #172d39;
}

html[data-theme="dark"] .auth-v2__separator::before,
html[data-theme="dark"] .auth-v2__separator::after,
html[data-theme="dark"] .auth-v2__footer i {
  background: rgba(174, 207, 198, .18);
}

html[data-theme="dark"] .auth-v2__info,
html[data-theme="dark"] .auth-v2__invalid-link {
  border-color: rgba(174, 207, 198, .18);
  background: linear-gradient(110deg, #122932, #10232e);
}

html[data-theme="dark"] .auth-v2__strength > span {
  background: #263a43;
}

@media (max-width: 980px) {
  .auth-v2 {
    grid-template-columns: 1fr;
  }

  .auth-v2__visual {
    min-height: 16rem;
    height: 30vh;
    background-position: center 58%;
  }

  .auth-v2__visual::after {
    height: 26%;
  }

  .auth-v2__caption {
    bottom: 1.5rem;
    left: 2rem;
    font-size: .95rem;
  }

  .auth-v2__main {
    min-height: 70vh;
    padding: 2.5rem clamp(1.25rem, 7vw, 4rem);
  }
}

@media (max-width: 620px) {
  .auth-v2__visual {
    min-height: 10rem;
    height: 21vh;
  }

  .auth-v2__caption {
    display: none;
  }

  .auth-v2__main {
    min-height: 79vh;
    place-items: start center;
    padding: 2rem 1.25rem;
  }

  .auth-v2__brand {
    margin-bottom: 2.25rem;
    font-size: 1.65rem;
  }

  .auth-v2__brand-mark {
    width: 2.5rem;
  }

  .auth-v2__intro h1 {
    font-size: 2.15rem;
  }

  .auth-v2__info {
    align-items: flex-start;
  }

  .auth-v2__strength {
    grid-template-columns: repeat(4, 1fr);
  }

  .auth-v2__strength strong {
    grid-column: 1 / -1;
    margin: .15rem 0 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-v2__back,
  .auth-v2__primary {
    transition: none;
  }
}
