/* ==========================================================================
   Private-client authentication

   Authentication is deliberately quieter than the storefront, but it should
   still feel like the same jewellery house. The editorial image establishes
   the brand while the raised form panel keeps the task direct and legible.
   ========================================================================== */

.auth-page main {
  overflow: clip;
}

.auth-section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(var(--space-xl), 6vw, var(--space-3xl));
}

.auth-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 8% 8%, var(--wine-soft), transparent 34%),
    radial-gradient(circle at 92% 88%, var(--olive-soft), transparent 32%);
  opacity: 0.72;
  pointer-events: none;
}

.auth-section__shell {
  max-width: 72rem;
}

.auth-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
}

.auth-story {
  position: relative;
  display: flex;
  min-height: 36rem;
  align-items: flex-end;
  overflow: hidden;
  background: var(--brand-deep);
  color: var(--on-dark);
}

.auth-story__media,
.auth-story__media img,
.auth-story__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-story__media img {
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.72) contrast(1.05);
  transform: scale(1.015);
}

.auth-story__veil {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-deep) 8%, transparent) 10%,
      color-mix(in srgb, var(--brand-deep) 42%, transparent) 52%,
      color-mix(in srgb, var(--brand-deep) 96%, transparent) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--brand-deep) 28%, transparent), transparent 65%);
}

.auth-story__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
}

.auth-story__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  color: var(--gold-light);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.auth-story__eyebrow::before {
  width: 1.75rem;
  height: 1px;
  background: var(--gold-light);
  content: "";
}

.auth-story__title {
  margin-bottom: var(--space-md);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
  font-weight: 300;
  letter-spacing: var(--tracking-tight);
  line-height: 0.98;
}

.auth-story__copy {
  max-width: 31rem;
  color: var(--on-dark-muted);
  font-size: var(--step-0);
  line-height: var(--leading-snug);
}

.auth-story__services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  margin: var(--space-lg) 0 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid var(--on-dark-line);
  list-style: none;
  color: var(--on-dark-muted);
  font-size: var(--step--2);
}

.auth-story__services li {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.auth-story__services .icon {
  color: var(--gold-light);
}

.auth-card__panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(var(--space-lg), 5vw, var(--space-2xl));
}

.auth-card__header,
.auth-card__body {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.auth-card__header {
  margin-bottom: var(--space-xl);
}

.auth-card__header .kicker {
  margin-bottom: var(--space-md);
}

.auth-card__header h1 {
  margin-bottom: var(--space-sm);
  font-size: clamp(2.35rem, 4vw, 3.5rem);
}

.auth-card__lede {
  max-width: 46ch;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--step-0);
  line-height: var(--leading-normal);
}

.auth-card .field {
  margin-bottom: var(--space-lg);
}

.auth-card .field__label {
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.auth-card .input,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="tel"],
.auth-card input[type="password"] {
  min-height: 3.25rem;
  background: var(--surface);
}

.auth-card .btn--primary {
  min-height: 3.35rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: calc(var(--space-xs) * -1) 0 var(--space-lg);
}

.auth-form__options .field {
  margin: 0;
}

.auth-form__options .check {
  padding: var(--space-xs) 0;
}

.auth-text-link {
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration-color: var(--line-gold);
  white-space: nowrap;
}

.auth-account-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  color: var(--text-muted);
  font-size: var(--step--1);
}

.auth-account-prompt a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.auth-account-prompt a:hover {
  color: var(--accent-hover);
}

.auth-account-prompt .icon {
  transition: transform var(--dur-fast) var(--ease);
}

.auth-account-prompt a:hover .icon {
  transform: translateX(2px);
}

.auth-tracker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-xs) var(--space-sm);
  margin-top: var(--space-xl);
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
}

.auth-tracker__icon {
  display: grid;
  grid-row: 1 / span 2;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-hover);
}

.auth-tracker div > strong,
.auth-tracker div > span {
  display: block;
}

.auth-tracker strong {
  margin-bottom: 0.12rem;
  font-size: var(--step--1);
}

.auth-tracker div > span {
  color: var(--text-muted);
  font-size: var(--step--2);
  line-height: var(--leading-snug);
}

.auth-tracker__link {
  grid-column: 2;
  width: max-content;
  color: var(--accent-hover);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}

.auth-tracker__link:hover {
  color: var(--wine);
}

@media (min-width: 52rem) {
  .auth-card {
    grid-template-columns: minmax(19rem, 0.9fr) minmax(28rem, 1.1fr);
  }
}

@media (max-width: 51.99rem) {
  .auth-story {
    min-height: 14rem;
  }

  .auth-story__media img {
    object-position: center 42%;
  }

  .auth-story__copy,
  .auth-story__services {
    display: none;
  }

  .auth-story__title {
    margin: 0;
    font-size: clamp(2.25rem, 8vw, 3.25rem);
  }
}

@media (max-width: 35rem) {
  .auth-section {
    padding-block: var(--space-md) var(--space-xl);
  }

  .auth-section__shell {
    padding-inline: var(--space-sm);
  }

  .auth-card {
    border-radius: var(--radius-lg);
  }

  .auth-story {
    min-height: 10.5rem;
  }

  .auth-story__content {
    padding: var(--space-lg);
  }

  .auth-story__eyebrow {
    margin-bottom: var(--space-xs);
  }

  .auth-card__panel {
    padding: var(--space-xl) var(--space-lg);
  }

  .auth-card__header {
    margin-bottom: var(--space-lg);
  }

  .auth-card__header h1 {
    font-size: 2.4rem;
  }

  .auth-form__options {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .auth-account-prompt {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-story__media img {
    transform: none;
  }
}
