/* ==========================================================================
   ระบบสารวัตรนักเรียน - โรงเรียนเดชะปัตตนยานุกูล
   Minimalist Maintenance Page with Dynamic Blurred Gradient Spots
   ========================================================================== */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700&family=Kanit:wght@400;500;600;700&display=swap');

/* --- Global Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Prompt', 'Kanit', sans-serif;
  background-color: #faf6e8;
  color: #0f0f0f;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  position: relative;
}

/* --- Dynamic Ambient Blurred Gradient Background --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: multiply;
  animation: floatOrb 16s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(45px, -35px) scale(1.12);
  }

  66% {
    transform: translate(-35px, 40px) scale(0.92);
  }

  100% {
    transform: translate(25px, -20px) scale(1.05);
  }
}

/* --- Main Centered Content Container --- */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

/* --- Warning Triangle Icon --- */
.icon-wrapper {
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-icon {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(245, 158, 11, 0.3));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.warning-icon:hover {
  transform: scale(1.06) rotate(-2deg);
}

/* --- Main Heading --- */
.main-title {
  font-family: 'Prompt', 'Kanit', sans-serif;
  font-size: clamp(2.1rem, 5.8vw, 3.3rem);
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: -0.5px;
  margin-bottom: 5.5rem;
  line-height: 1.25;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
}

/* --- Bottom Branding Footer --- */
.brand-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

.school-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}

.brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0c0c0c;
  letter-spacing: 0.2px;
}

.school-name {
  font-size: 0.94rem;
  font-weight: 500;
  color: #2c2c2c;
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
  .warning-icon {
    width: 100px;
  }

  .main-title {
    margin-bottom: 4rem;
  }

  .school-logo {
    height: 44px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .school-name {
    font-size: 0.85rem;
  }
}