.google-auth-section {
  display: grid;
  gap: 12px;
}

.google-auth-primary {
  padding: 16px;
  border: 1px solid rgba(20, 91, 255, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 91, 255, 0.035), rgba(20, 91, 255, 0.015));
}

.google-auth-button-shell {
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: opacity 160ms ease, filter 160ms ease;
}

.google-auth-button-shell.is-disabled {
  opacity: 0.48;
  filter: grayscale(0.25);
  pointer-events: none;
}

.google-oauth-button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 18px;
  border: 1px solid #c8c9cc;
  border-radius: 999px;
  background: #ffffff;
  color: #202124;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.08);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.google-oauth-button:hover {
  border-color: #aeb0b4;
  background: #f8fafd;
  box-shadow: 0 2px 5px rgba(32, 33, 36, 0.12);
}

.google-oauth-button:active {
  transform: translateY(1px);
}

.google-oauth-button:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.22);
  outline-offset: 2px;
}

.google-oauth-button:disabled {
  cursor: not-allowed;
}

.google-oauth-g {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4285f4;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.google-auth-helper {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;
  color: var(--editorial-subtle);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.auth-method-details {
  overflow: hidden;
  border: 1px solid var(--editorial-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.auth-method-summary {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--editorial-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.auth-method-summary::-webkit-details-marker {
  display: none;
}

.auth-method-summary:hover {
  background: rgba(23, 23, 23, 0.025);
}

.auth-method-summary-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--editorial-soft);
  color: var(--editorial-ink);
  font-size: 12px;
  font-weight: 750;
}

.auth-method-summary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.auth-method-summary-copy strong {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-method-summary-copy small {
  color: var(--editorial-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.auth-method-summary-chevron {
  color: var(--editorial-muted);
  font-size: 18px;
  transition: transform 160ms ease;
}

.auth-method-details[open] .auth-method-summary-chevron {
  transform: rotate(180deg);
}

.auth-method-details-body {
  display: grid;
  gap: 18px;
  padding: 2px 14px 16px;
}

.auth-method-details[open] .auth-method-summary {
  border-bottom: 1px solid var(--editorial-line);
}

.google-link-panel {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid rgba(20, 91, 255, 0.18);
  border-radius: 20px;
  background: rgba(20, 91, 255, 0.045);
}

.google-link-panel[hidden] {
  display: none;
}

.google-link-panel strong {
  color: var(--editorial-ink);
  font-size: 14px;
  line-height: 1.45;
}

.google-link-panel p {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 13px;
  line-height: 1.55;
}

.google-link-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

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

.google-register-hint {
  margin: 0;
  color: var(--editorial-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.google-register-hint[hidden] {
  display: none;
}

.google-register-hint a,
.terms-row a {
  color: var(--editorial-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .google-link-actions {
    grid-template-columns: 1fr;
  }

  .google-auth-primary {
    padding: 14px;
  }

  .auth-method-summary {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding-inline: 12px;
  }

  .auth-method-summary-icon {
    width: 34px;
    height: 34px;
  }

  .auth-method-details-body {
    padding-inline: 12px;
  }
}
