.narrow {
  width: min(760px, 100%);
  margin: 0 auto;
}

.auth-card {
  width: min(420px, 100%);
  margin: 0 auto;
  margin-top: 32px;
  padding: 36px 32px;
  border-radius: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.auth-copy {
  margin-bottom: 24px;
}

.auth-copy h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.auth-copy p {
  margin-bottom: 0;
}

.auth-form {
  width: 100%;
}

.auth-provider-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.google-auth-slot {
  display: flex;
  justify-content: center;
}

.google-auth-slot > div {
  width: 100%;
}

.google-button-fallback {
  min-height: 46px;
}

.google-status {
  margin-top: 0;
  text-align: center;
}

.auth-divider {
  position: relative;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  margin-top: 22px;
}

.auth-switch {
  margin: 10px 0 0;
  font-size: 0.92rem;
  text-align: center;
}

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

.button-block {
  width: 100%;
}

@media (max-width: 760px) {
  .auth-card {
    padding: 28px 20px;
  }
}

.auth-shell {
  padding-top: 0;
}
