/* Page-specific auth styles */
.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.auth-panel {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 2rem;
  align-items: stretch;
}

.auth-panel--single {
  width: min(100%, 420px);
  grid-template-columns: minmax(0, 1fr);
}

.auth-copy,
.auth-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-copy {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.auth-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(99, 102, 241, 0.12);
}

.auth-kicker {
  color: var(--copper-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.auth-copy h2,
.auth-form-header h2 {
  font-family: var(--font-title);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-copy h2 {
  max-width: 560px;
  margin-top: 1rem;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
}

.auth-copy p {
  max-width: 520px;
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.auth-stats span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-form {
  padding: 2rem;
}

.auth-form-header {
  margin-bottom: 1.5rem;
}

.auth-form-header h2 {
  font-size: 2rem;
}

.auth-form-header p,
.auth-switch {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-field input {
  min-height: 48px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  margin-top: 0.5rem;
}

.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
}

.auth-switch-link {
  margin-top: 0.5rem;
}

.auth-switch-link:first-child {
  margin-top: 0;
}

.auth-switch a {
  color: var(--copper-accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

@media (max-width:760px) {
.auth-panel {
    grid-template-columns: 1fr;
  }

.auth-copy {
    min-height: 320px;
    padding: 1.5rem;
  }

.auth-form {
    padding: 1.5rem;
  }
}

.auth-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
  color: #86efac;
}

[data-theme="light"] .auth-copy,
[data-theme="light"] .auth-form {
  background: rgba(245, 237, 218, 0.65);
  border: 1px solid rgba(184, 146, 80, 0.22);
}

[data-theme="light"] .auth-copy::after {
  border-color: rgba(217, 119, 6, 0.18);
  box-shadow: inset 0 0 60px rgba(217, 119, 6, 0.08);
}

[data-theme="light"] .auth-stats span {
  border: 1px solid rgba(120, 90, 50, 0.15);
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-secondary);
}

[data-theme="light"] .auth-success {
  background: rgba(77, 124, 15, 0.08);
  border-color: rgba(77, 124, 15, 0.22);
  color: #3f6212;
}

.auth-footprints-page {
  isolation: isolate;
}

.auth-footprints-page .app-container {
  position: relative;
  z-index: 1;
}

.auth-footprints {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: strict;
}

.auth-footprint {
  position: absolute;
  color: var(--text-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation: auth-footprint-fade 8s ease-out forwards;
}

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

.auth-footprint { animation: none; }
}
