.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  background: #fff;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 0.5rem;
}

.google-btn-wrap {
  position: relative;
  width: 100%;
  min-height: 44px;
  margin-top: 0;
  margin-bottom: 4px;
}

.google-btn-visual {
  pointer-events: none;
}

.google-btn-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  opacity: 0.011;
  cursor: pointer;
}

.google-btn-overlay > div {
  width: 100% !important;
  height: 100% !important;
}

.google-btn-overlay iframe {
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
}

.google-btn-wrap--error .google-btn-visual {
  opacity: 0.55;
}

.google-btn-icon {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

#turnstile-widget {
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#turnstile-widget:not(.turnstile-widget--hidden) {
  min-height: 65px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.turnstile-widget--hidden {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.alert-box {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: top 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 400px;
}

.alert-box.show {
  top: 20px;
}

.alert-success {
  background-color: #10b981;
  color: white;
}

.alert-error {
  background-color: #ef4444;
  color: white;
}

.close-alert {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  margin-left: 10px;
}

.signup-btn {
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.signup-btn:hover {
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  text-align: center;
  background: transparent;
  padding: 2rem;
  border-radius: 12px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loading-text {
  color: #374151;
  font-size: 1.1rem;
  margin: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.saved-account-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-account-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.saved-account-btn:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.saved-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.saved-account-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.saved-account-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-account-email {
  font-size: 0.8rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-account-remove {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saved-account-remove:hover {
  color: #ef4444;
  border-color: #fecaca;
}

.auth-page-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
}
