/* Auth UI — matches orrery.css tokens */
.hidden { display: none !important; }

.auth-nav-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

.auth-chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--glow-violet);
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-card .sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-email-row {
  display: flex;
  gap: 8px;
}

.auth-input {
  flex: 1;
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: var(--violet-lt);
}

.auth-msg {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
  min-height: 1.5em;
}

.auth-msg.ok { color: var(--green); }
.auth-msg.err { color: var(--red); }

.btn-oauth {
  width: 100%;
  justify-content: center;
  font-weight: 500;
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #dadce0;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #c6c9cc;
}

.btn-github {
  background: #24292f;
  color: #fff;
  border-color: #24292f;
}

.btn-github:hover {
  background: #32383f;
  border-color: #32383f;
}

.download-steps {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.download-steps h3 {
  font-family: var(--display);
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--ink-2);
}

.download-steps ol {
  margin-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.download-steps li + li {
  margin-top: 8px;
}

.waitlist-box {
  text-align: center;
  padding: 20px 0;
}

.waitlist-box .icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.auth-optional {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.auth-optional-head h2 {
  font-family: var(--display);
  font-size: 18px;
  margin-bottom: 6px;
}

.auth-optional-head .sub {
  margin-bottom: 20px;
  font-size: 14px;
}

.account-plan {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 18px;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.06), rgba(255,255,255,0.02));
}

.account-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.account-plan-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.account-plan h2 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.account-plan p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.plan-badge {
  flex: none;
  border: 1px solid rgba(45, 212, 191, 0.36);
  border-radius: var(--r-sm);
  color: var(--teal-lt);
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 5px 9px;
}

.account-plan-meter {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.account-plan-meter b {
  color: var(--ink);
  font-weight: 600;
}

.account-plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.plan-note {
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 720px) {
  .auth-nav-slot .auth-chip { display: none; }
  .auth-email-row,
  .account-plan-head,
  .account-plan-actions {
    flex-direction: column;
  }
  .auth-email-row .btn,
  .account-plan-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
