/* Auth v3: light white / black / red + Three.js field */

.auth-body {
  min-height: 100vh;
  margin: 0;
  color: #111111;
  background: #fafafa;
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #fafafa;
}

.auth-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* scene paused — form-only auth */
  display: none !important;
}

.auth-bg-veil {
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 48%, rgba(225, 29, 46, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(250, 250, 250, 0.2) 0%, rgba(250, 250, 250, 0.55) 100%);
  pointer-events: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0;
  padding: 0;
  display: block;
}

.auth-card {
  padding: 2rem 1.7rem 1.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 50px rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(18px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.35rem;
  text-decoration: none;
  color: #111;
}

.auth-brand .lp-logo-mark {
  width: 2rem;
  height: 2rem;
}

.auth-brand-text {
  font-family: "Syne", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.auth-kicker {
  margin: 0 0 0.4rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e11d2e;
}

.auth-title {
  margin: 0 0 0.5rem;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 4vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #111;
}

.auth-lead {
  margin: 0 0 1.35rem;
  color: rgba(17, 17, 17, 0.55);
  font-size: 0.94rem;
  line-height: 1.5;
}

.auth-form label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #111;
}

.auth-form label:first-of-type {
  margin-top: 0;
}

.auth-input {
  width: 100%;
  padding: 0.88rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: #111;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
  color: rgba(17, 17, 17, 0.32);
}

.auth-input:focus {
  outline: none;
  border-color: #e11d2e;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.15);
}

.auth-input.is-invalid {
  border-color: #e11d2e;
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12);
}

.auth-error {
  margin-top: 0.35rem;
  color: #e11d2e;
  font-size: 0.84rem;
  font-weight: 600;
}

.auth-check {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.auth-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #e11d2e;
}

.auth-submit {
  width: 100%;
  margin-top: 1.35rem;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1.2rem;
  background: #e11d2e;
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(225, 29, 46, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.auth-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(225, 29, 46, 0.34);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-foot {
  margin-top: 1.25rem;
  text-align: center;
  color: rgba(17, 17, 17, 0.5);
  font-size: 0.92rem;
}

.auth-foot a {
  color: #111;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid #e11d2e;
}

.auth-foot a:hover {
  color: #e11d2e;
}

.auth-aside {
  display: none;
}

@media (min-width: 980px) {
  .auth-stage {
    padding: 2.5rem 3.5rem;
  }

  .auth-bg-veil {
    background:
      radial-gradient(ellipse 48% 42% at 50% 46%, rgba(250, 250, 250, 0.2), transparent 68%),
      linear-gradient(180deg, rgba(250, 250, 250, 0.35) 0%, rgba(250, 250, 250, 0.78) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth-aside {
    opacity: 1 !important;
    transform: none !important;
  }
}
