/* Auth — mobile-first, matches landing brand */

.auth-page {
  min-height: 100dvh;
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.25rem var(--page-pad) 3rem;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad-r);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(245, 145, 35, 0.08), transparent 55%),
    var(--bg-primary);
}

.auth-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-back:hover {
  color: var(--text-primary);
}

.auth-brand {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.auth-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.auth-display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.auth-sub {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.5;
}

.auth-role-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.auth-role-link {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 2.5rem 1.15rem 1.15rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(245, 145, 35, 0.04), transparent 70%);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.auth-role-link + .auth-role-link {
  margin-top: 0.15rem;
}

.auth-role-link:hover,
.auth-role-link:focus-visible {
  background: linear-gradient(90deg, rgba(245, 145, 35, 0.1), transparent 75%);
  border-color: rgba(245, 145, 35, 0.35);
  outline: none;
}

.auth-role-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth-role-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-role-copy {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.auth-role-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 1.15rem;
}

.auth-tab {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.auth-tab.active {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.auth-form input {
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
}

.auth-form input:focus {
  outline: 2px solid rgba(245, 145, 35, 0.35);
  outline-offset: 1px;
  border-color: rgba(245, 145, 35, 0.5);
}

.auth-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.auth-error {
  color: #ff6b6b;
  font-size: 0.875rem;
}

.auth-switch {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}

.auth-demo {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .auth-page {
    padding-top: 2.5rem;
  }

  .auth-role-link {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
}
