/* ═══════════════════════════════════════════════════════
   LA RATA — Auth Pages
   Cinematic split layout.
   ═══════════════════════════════════════════════════════ */

.auth-page {
  display: flex;
  min-height: 100dvh;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr 1.5fr; /* Visual side slightly wider for cinematic feel */
  }
}

/* Form Side */
.auth-form-side {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg);
  position: relative;
  z-index: 2;
  box-shadow: 20px 0 60px rgba(0,0,0,0.5); /* Cast shadow onto visual */
}
.auth-form-side header {
  margin-bottom: auto;
}
.auth-form-container {
  max-width: 400px;
  width: 100%;
  margin: var(--space-3xl) auto auto;
}

.auth-form-container h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.auth-form-container p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
  line-height: 1.5;
}

.auth-form-container .btn-primary {
  width: 100%;
  margin-top: var(--space-lg);
  padding-block: 16px;
  font-size: var(--text-md);
}

.auth-links {
  margin-top: var(--space-2xl);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.auth-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast);
  margin-left: 8px;
}
.auth-links a:hover {
  border-color: var(--text-primary);
}

/* Visual Side */
.auth-visual-side {
  display: none;
  position: relative;
  background: var(--surface);
  overflow: hidden;
}
@media (min-width: 900px) {
  .auth-visual-side {
    display: block;
  }
}

.auth-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
  filter: contrast(1.1) brightness(0.8);
  transform: scale(1.02);
}

/* Back button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.btn-back:hover {
  color: var(--text-primary);
}
