/* ============================================
   WS Google SSO - SweetAlert2 Popup (thông báo)
   ============================================ */
.swal2-popup.ws-google-sso-alert,
body .swal2-container .swal2-popup {
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: inherit;
  pointer-events: auto;
}
/* Icon chỉ trang trí - không chặn click */
.swal2-container .swal2-icon {
  pointer-events: none;
  display: none !important;
}
.swal2-container .swal2-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.swal2-container .swal2-html-container {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}
.swal2-container .swal2-icon.swal2-error {
  border-color: #f87171;
}
.swal2-container .swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #ef4444;
}
.swal2-container .swal2-actions {
  margin-top: 1.5rem;
  pointer-events: auto;
}
.swal2-container .swal2-confirm {
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  cursor: pointer;
  pointer-events: auto;
}
.swal2-container .swal2-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.swal2-container .swal2-confirm:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

/* Dark backdrop - không chặn click vào popup */
.swal2-container.swal2-backdrop-show {
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999999 !important;
}
.swal2-container .swal2-popup {
  position: relative;
  z-index: 1;
}
/* Đảm bảo SweetAlert luôn trên iframe Google (GSI dùng z-index rất cao) */
.swal2-container {
  z-index: 2147483646 !important;
}

/* Animation nhẹ */
@keyframes ws-sso-popup-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.swal2-show.swal2-popup {
  animation: ws-sso-popup-in 0.25s ease-out;
}

/* ============================================
   WS Google SSO - Form đăng nhập
   ============================================ */
.ws-google-sso-wrap {
  margin: 1em 0;
}
.ws-google-sso-label {
  margin: 0 0 0.5em;
  font-weight: 600;
}
.ws-google-sso-user-type {
  margin-bottom: 0.75em;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
}
.ws-google-sso-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  cursor: pointer;
}
.ws-google-sso-radio input[type="radio"] {
  margin: 0;
}

/* Trang wp-login.php */
body.login .ws-google-sso-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #c3c4c7;
}
body.login .ws-google-sso-label {
  margin-bottom: 10px !important;
  font-weight: 600;
}
/* #loginform .g_id_signin iframe {
  margin-left: auto !important;
  margin-right: auto !important;
} */
body.login #loginform .ws-google-sso-wrap {
  margin-bottom: 16px;
}
