/* Auth — same Market chrome, simple form card (no split-door). */
.auth-page {
  max-width: 480px;
  margin: 24px auto 48px;
  padding: 0 16px;
}

.auth-card {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 18px 20px 22px;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dk);
}

.auth-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.auth-lead code {
  font-size: 11px;
  background: #f0f0f0;
  padding: 1px 4px;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 8px;
}

.auth-tab {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.on {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  color: #fff;
}

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

/* `hidden` must win over display:flex (otherwise all tabs stack). */
.auth-panel[hidden] {
  display: none !important;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.auth-field input {
  height: 34px;
  border: 1px solid var(--line);
  padding: 0 8px;
  font-size: 13px;
  font-weight: 400;
  background: #fff;
}

.auth-field input::placeholder {
  color: #9a9a9a;
  font-weight: 400;
  opacity: 1;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

.auth-check input {
  margin-top: 2px;
}

.auth-submit {
  align-self: flex-start;
  cursor: pointer;
}

.auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.auth-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

.auth-step {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dk);
}

.auth-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: var(--blue-link);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.auth-forgot-step2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.auth-forgot-step2[hidden] {
  display: none !important;
}

.auth-msg {
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  font-size: 12px;
  line-height: 1.35;
}

.auth-msg.err {
  border-color: #c9a0a0;
  background: #fff5f5;
  color: #8b1a1a;
}

.auth-msg.ok {
  border-color: #a0c9a8;
  background: #f4fff6;
  color: #1a5c28;
}

.auth-session {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-session p {
  margin: 0;
  flex: 1 1 100%;
  font-size: 12px;
  font-weight: 600;
}
