/* Google Auth identity branding — scoped to auth Google surfaces only.
   Official Google "G" colors must not be recolored. */

.auth-google-g-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.auth-google-login {
  margin-bottom: 1.25rem;
  width: 100%;
}

.auth-google-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #dadce0;
  background: #ffffff !important;
  color: #3c4043 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

html[dir="rtl"] .auth-google-button {
  padding: 0.7rem 2.75rem 0.7rem 1rem;
}

.auth-google-button:hover {
  background: #f8f9fa !important;
  border-color: #c6c9ce;
  color: #202124 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
  transform: none;
}

.auth-google-button:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.auth-google-button:active {
  background: #f1f3f4 !important;
  transform: none;
}

/* Defeat .auth-page button/.btn green override when mis-applied */
.auth-page .auth-google-button,
.auth-content .auth-google-button,
.auth-page a.auth-google-button.btn,
.auth-content a.auth-google-button.btn {
  background: #ffffff !important;
  color: #3c4043 !important;
  border: 1px solid #dadce0 !important;
}

.auth-page .auth-google-button:hover,
.auth-content .auth-google-button:hover {
  background: #f8f9fa !important;
  color: #202124 !important;
}

.auth-google-button__icon {
  position: absolute;
  inset-inline-start: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
}

.auth-google-button__label {
  display: inline-block;
  text-align: center;
  color: inherit !important;
  font-weight: 600;
}

.auth-login-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.1rem 0 0.45rem;
  color: var(--text-muted, #6b7280);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  width: 100%;
}

.auth-login-divider::before,
.auth-login-divider::after {
  content: "";
  flex: 1 1 0;
  min-width: 1.5rem;
  border-top: 1px solid var(--border-color, #e5e7eb);
  opacity: 0.9;
}

.auth-google-button.is-disabled,
.auth-google-button[aria-disabled="true"],
.auth-google-button[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

/* Verified Google identity card — not a form control */
.verified-identity-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  margin: 0 0 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(66, 133, 244, 0.28);
  background: #f8fbff;
  box-sizing: border-box;
}

.verified-identity-card__provider {
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 0.15rem;
}

.verified-identity-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.verified-identity-card__email {
  font-weight: 700;
  font-size: 0.95rem;
  color: #202124;
  word-break: break-word;
  direction: ltr;
  unicode-bidi: isolate;
}

.verified-identity-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #137333;
}

.verified-identity-card__check {
  flex-shrink: 0;
  color: #137333;
}

.google-auth-trust-copy {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.45;
}

[data-theme="dark"] .auth-google-button,
body.dark .auth-google-button {
  background: #ffffff !important;
  color: #3c4043 !important;
  border-color: #dadce0 !important;
}

[data-theme="dark"] .verified-identity-card,
body.dark .verified-identity-card {
  background: #f8fbff;
  border-color: rgba(66, 133, 244, 0.28);
}

[data-theme="dark"] .verified-identity-card__email,
body.dark .verified-identity-card__email {
  color: #202124;
}

@media (max-width: 767px) {
  .auth-google-button {
    min-height: 48px;
  }
}
