.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100dvh;
  font-family: system-ui, sans-serif;
  color: #17181a;
  background: #ffffff;
}

.auth__panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
  background-color: #f7f6f4;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.auth__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.auth__panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 26rem;
}

.auth__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #17181a;
  text-decoration: none;
}

.auth__brand svg {
  width: 0.95rem;
  height: 0.95rem;
}

.auth__brand--mobile {
  display: none;
  margin-bottom: 2rem;
}

.auth__quote {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
}

.auth__card {
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
}

.auth__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #f0efed;
  font-size: 0.8rem;
  color: rgba(23, 24, 26, 0.7);
}

.auth__title {
  margin-bottom: 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.auth__subtitle {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(23, 24, 26, 0.6);
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(23, 24, 26, 0.7);
}

.auth__input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: none;
  border-radius: 0.65rem;
  background: #f7f6f4;
  font-family: inherit;
  font-size: 0.9rem;
  color: #17181a;
  outline: none;
}

.auth__input::placeholder {
  color: rgba(23, 24, 26, 0.35);
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.15rem;
}

.auth__check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: rgba(23, 24, 26, 0.6);
  cursor: pointer;
}

/* Custom checkbox: hidden native input, our own box + check glyph */
.auth__check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.auth__check-box {
  position: relative;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 0.3rem;
  background: #f0efed;
  transition: background-color 0.2s ease;
}

.auth__check-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.38rem;
  height: 0.2rem;
  border-left: 1.5px solid #ffffff;
  border-bottom: 1.5px solid #ffffff;
  opacity: 0;
  /* center the glyph, nudge up slightly since the check hangs below its box */
  transform: translate(-50%, -65%) rotate(-45deg) scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth__check input:checked + .auth__check-box::before {
  transform: translate(-50%, -65%) rotate(-45deg) scale(1);
}

.auth__check input:checked + .auth__check-box {
  background: #17181a;
}

.auth__check input:checked + .auth__check-box::before {
  opacity: 1;
}

.auth__link {
  font-size: 0.82rem;
  color: rgba(23, 24, 26, 0.6);
  text-decoration: none;
}

@media (hover: hover) {
  .auth__link:hover {
    color: #17181a;
  }
}

.auth__submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 0.55rem;
  background: #17181a;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  color: #ffffff;
}

.auth__sent {
  padding: 1.25rem 1.35rem;
  border-radius: 0.75rem;
  background: #f7f6f4;
}

.auth__sent-title {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth__sent-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(23, 24, 26, 0.6);
}

.auth__switch {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: rgba(23, 24, 26, 0.55);
  text-align: center;
}

.auth__switch a {
  color: #17181a;
  text-decoration: none;
  font-weight: 500;
}

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

  .auth__panel {
    display: none;
  }

  .auth__brand--mobile {
    display: inline-flex;
  }

  .auth__main {
    min-height: 100dvh;
    justify-content: flex-start;
    padding-top: clamp(2rem, 8vw, 3.5rem);
  }
}
