/*
 * Auth pages (devise layout)
 *
 * Same visual language as the landing page: faint 12-column guides
 * fading out from the top, a white card with a hairline border and a
 * soft shadow, and a quiet rise-in.
 */

.auth-guides {
  position: fixed;
  inset: 0 max(16px, calc((100vw - 1152px) / 2));
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 30%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 0, #000 30%, transparent 75%);
}

.auth-guides span {
  border-left: 1px solid color-mix(in srgb, var(--color-dark-text) 4%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--color-dark-text) 4%, transparent);
}

@media (max-width: 640px) {
  .auth-guides {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 16px;
  }

  .auth-guides span:nth-child(n + 5) {
    display: none;
  }
}

.auth-card {
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.04), 0 24px 56px -28px rgba(16, 17, 20, 0.16);
  animation: authRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Focus ring for inputs (accent) */
.auth-input-focus:focus {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent-cyan) 15%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .auth-card {
    animation: none;
  }
}
