html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Prompt", sans-serif;
  /*background: linear-gradient(rgba(58, 58, 58, 0.5), rgba(92, 92, 92, 0.5)),
    url("../image/bgpos.png");
  */
  background: url("../image/bg-v2.png") center / contain no-repeat fixed;
  background-size: cover;
  background-position: center 100%; /* ลอง 10% / 20% / 30% */
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* height: 100vh; */
  display: flex;
  align-items: center;
  justify-content: center;
}

body.swal2-shown {
  height: 100vh !important;
  overflow: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ✅ ชั้นเบลอ */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background: inherit; /* ดึง bg จาก body มาใช้ */
  filter: blur(2px); /* ✅ ปรับความเบลอ 6-14 ได้ */
  transform: scale(1.05); /* กันขอบเบลอแล้วเห็นขอบดำ */
  z-index: 0;
}

/* ✅ ชั้น overlay ให้ดูนุ่มขึ้น + เข้าธีมม่วง */
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background: rgba(255, 255, 255, 0.25); /* ปรับได้ */
  z-index: 1;
}

/* ✅ ทำให้ content จริงอยู่เหนือ blur */
.login-box {
  position: relative;
  z-index: 2;

  width: 980px;
  height: 560px;

  max-width: 92vw;
  max-height: 82vh;

  display: flex;
  border-radius: 16px;
  overflow: hidden;
}
