.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
}

.auth-card {
  width: min(100%, 420px);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.auth-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1rem;
}

.auth-card__header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.auth-card__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.25rem;
  border-radius: 10px;
  background: var(--bg-elevated);
}

.auth-tabs__btn {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.auth-tabs__btn--active {
  background: var(--bg-surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
}

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

.auth-form--hidden {
  display: none;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-field input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.auth-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
  font-size: 0.875rem;
}

.auth-alert--hidden {
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.auth-google {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.auth-footnote {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.auth-badge--free {
  background: color-mix(in srgb, var(--text-muted) 15%, transparent);
  color: var(--text-muted);
}

.auth-badge--pro {
  background: color-mix(in srgb, var(--blue) 15%, transparent);
  color: var(--blue);
}

.auth-badge--enterprise {
  background: color-mix(in srgb, var(--purple) 15%, transparent);
  color: var(--purple);
}

.account-card {
  width: min(100%, 560px);
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-meta h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.account-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.account-plan {
  padding: 1rem;
  border-radius: 10px;
  background: var(--bg-elevated);
  margin-bottom: 1rem;
}

.account-plan h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-locale select {
  width: 100%;
  max-width: 16rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text);
  font: inherit;
}

.account-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav__auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__auth-link {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav__auth-link--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}

.nav__auth-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-users-table th,
.admin-users-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-users-table select {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.admin-users-table .btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}
