/* Account surfaces: kept separate so the public auth experience can evolve
 * without changing the shared owner/staff design tokens. */
.auth-experience {
  width: min(100%, 1060px);
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr);
  align-items: start;
}

.auth-experience > .auth-card {
  display: grid;
  gap: 1.15rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3ebe7;
}

.auth-tab {
  min-height: 42px;
  padding: .55rem .7rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
}

.auth-tab:hover { color: var(--primary-dark); background: #fffaf7; }
.auth-tab[aria-selected="true"] {
  color: var(--primary-dark);
  background: var(--card);
  box-shadow: 0 1px 4px #2e24301c;
}

.auth-pane-content { min-width: 0; }
.auth-pane-content h2 { margin-bottom: .65rem; }
.auth-pane-content .auth-switch { margin-bottom: 0; }
.auth-card [data-account-message] { margin-bottom: .85rem; overflow-wrap: anywhere; }
.auth-card .form-actions .btn-primary { flex: 1 1 10rem; }
.auth-card .oauth-actions .btn { flex: 1 1 9rem; }
.auth-privacy { display: block; font-size: .78rem; }

.auth-context {
  width: min(100%, 1060px);
  margin: -1.15rem auto 1.35rem;
  padding: .7rem .9rem;
  border: 1px solid #ead9c7;
  border-radius: 9px;
  background: #fff8ed;
  color: var(--muted);
  font-size: .9rem;
}

.auth-context strong { color: var(--primary-dark); }
.auth-card .checkline { align-items: flex-start; line-height: 1.4; }
.auth-card .checkline input { margin-top: .15rem; flex: 0 0 auto; }

@media (max-width: 650px) {
  .auth-experience { gap: .8rem; }
  .auth-experience > .auth-card { padding: 16px; }
  .auth-tabs { position: sticky; top: 8px; z-index: 1; }
  .auth-tab { min-height: 44px; }
  .auth-context { margin: -1rem 0 1rem; font-size: .86rem; }
  .auth-card .form-actions { align-items: stretch; }
  .auth-card .form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .auth-tab { transition: background-color .16s ease, color .16s ease, box-shadow .16s ease; }
}
