.auth-page {
  background:
    radial-gradient(circle at 15% 0%, rgb(231 216 200 / 55%), transparent 30rem),
    var(--ivory);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.9fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  width: min(100% - 3rem, 76rem);
  min-height: calc(100dvh - 73px);
  margin-inline: auto;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.auth-visual {
  min-width: 0;
}

.auth-visual-copy {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.auth-visual-copy p {
  margin: 0;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-visual-copy h2 {
  max-width: 17ch;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  letter-spacing: -0.055em;
  line-height: 1.03;
  text-wrap: balance;
}

.auth-visual figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--white);
  box-shadow: 0 28px 70px rgb(54 66 77 / 16%);
}

.auth-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.auth-visual figcaption {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  max-width: calc(100% - 1.8rem);
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  background: rgb(253 252 249 / 92%);
  color: var(--graphite-soft);
  font-size: 0.65rem;
  font-weight: 650;
}

.auth-panel {
  min-width: 0;
}

.auth-panel .panel-superficie {
  box-shadow: var(--shadow-surface);
}

.auth-text-button,
.auth-back {
  width: fit-content;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.auth-text-button:hover,
.auth-back:hover {
  background: transparent;
  color: var(--terracotta-deep);
}

.auth-back {
  margin-bottom: 1.25rem;
  color: var(--graphite-soft);
  text-decoration: none;
}

.auth-success {
  min-height: 0;
  margin: 0;
  color: var(--exito);
  font-size: 0.84rem;
  font-weight: 600;
}

.auth-success:not(:empty) {
  min-height: 1.5rem;
}

@media (max-width: 880px) {
  .auth-layout {
    grid-template-columns: 1fr;
    width: min(100% - 2.5rem, 42rem);
    gap: 3.5rem;
  }

  .auth-visual-copy {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .auth-visual-copy h2 {
    max-width: 22ch;
  }

  .auth-panel {
    order: -1;
  }
}

@media (max-width: 540px) {
  .auth-layout {
    width: min(100% - 2rem, 42rem);
    padding: 2.5rem 0 4rem;
  }

  .auth-visual-copy h2 {
    font-size: 1.75rem;
  }

  .auth-visual figcaption {
    position: static;
    display: block;
    max-width: none;
    border-radius: 0;
    background: var(--white);
  }
}
