body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-image: url('/images/w6XrlyV4m3.jpg'); /* 設定背景圖片路徑 */
    background-size: cover; /* 背景圖片填滿整個元素 */
    background-position: center; /* 背景圖片置中 */
    background-repeat: no-repeat; /* 背景圖片不重複 */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white; /* 文字顏色設為白色，以便在深色背景上閱讀 */
    position: relative; /* 為了偽元素定位 */
    overflow: hidden; /* 防止迷霧溢出 */
}

.login-container {
    background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景，讓文字更清晰 */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 20px;
}

.login-container div {
    margin-bottom: 15px;
    text-align: left;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
}

.login-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* 確保 padding 和 border 不會增加元素寬度 */
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-container button:hover {
    background-color: #0056b3;
}

/* From Uiverse.io by InfinityLoopGames */
.glowbutton {
  --duration: 7s;
  --easing: linear;
  --c-color-1: rgba(0, 44, 238, 0.7);
  --c-color-2: #00023c;
  --c-color-3: #7203bd;
  --c-color-4: rgba(0, 224, 224, 0.7);
  --c-shadow: rgba(0, 175, 123, 0.5);
  --c-shadow-inset-top: rgba(0, 140, 175, 0.671);
  --c-shadow-inset-bottom: rgba(157, 0, 209, 0.8);
  --c-radial-inner: #002396;
  --c-radial-outer: #00c0b7;
  --c-color: #fff;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  outline: none;
  position: relative;
  z-index: 2; /* 確保按鈕在迷霧之上 */
  cursor: pointer;
  border: none;
  display: table;
  border-radius: 24px;
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 20px; /* 增大字體 */
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--c-color);
  background: radial-gradient(circle, var(--c-radial-inner), var(--c-radial-outer) 80%);
  box-shadow: 0 0 14px var(--c-shadow);
}

.glowbutton:before {
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  box-shadow: inset 0 3px 12px var(--c-shadow-inset-top), inset 0 -3px 4px var(--c-shadow-inset-bottom);
}

.glowbutton .wrapper {
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  overflow: hidden;
  border-radius: 24px;
  min-width: 180px; /* 增大最小寬度 */
  padding: 18px 0; /* 增大上下內距 */
}

.glowbutton .wrapper span {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.glowbutton .wrapper .circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: blur(var(--blur, 8px));
  background: var(--background, transparent);
  transform: translate(var(--x, 0), var(--y, 0)) translateZ(0);
  animation: var(--animation, none) var(--duration) var(--easing) infinite;
}

.glowbutton .wrapper .circle.circle-1, .glowbutton .wrapper .circle.circle-9, .glowbutton .wrapper .circle.circle-10 {
  --background: var(--c-color-4);
}

.glowbutton .wrapper .circle.circle-3, .glowbutton .wrapper .circle.circle-4 {
  --background: var(--c-color-2);
  --blur: 14px;
}

.glowbutton .wrapper .circle.circle-5, .glowbutton .wrapper .circle.circle-6 {
  --background: var(--c-color-3);
  --blur: 16px;
}

.glowbutton .wrapper .circle.circle-2, .glowbutton .wrapper .circle.circle-7, .glowbutton .wrapper .circle.circle-8, .glowbutton .wrapper .circle.circle-11, .glowbutton .wrapper .circle.circle-12 {
  --background: var(--c-color-1);
  --blur: 12px;
}

.glowbutton .wrapper .circle.circle-1 { /* Changed from .uiverse to .glowbutton to match HTML */
  --x: 0;
  --y: -40px;
  --animation: circle-1;
}

.glowbutton .wrapper .circle.circle-2 { /* Changed from .uiverse to .glowbutton */
  --x: 92px;
  --y: 8px;
  --animation: circle-2;
}

.glowbutton .wrapper .circle.circle-3 { /* Changed from .uiverse to .glowbutton */
  --x: -12px;
  --y: -12px;
  --animation: circle-3;
}

.glowbutton .wrapper .circle.circle-4 { /* Changed from .uiverse to .glowbutton */
  --x: 80px;
  --y: -12px;
  --animation: circle-4;
}

.glowbutton .wrapper .circle.circle-5 { /* Changed from .uiverse to .glowbutton */
  --x: 12px;
  --y: -4px;
  --animation: circle-5;
}

.glowbutton .wrapper .circle.circle-6 { /* Changed from .uiverse to .glowbutton */
  --x: 56px;
  --y: 16px;
  --animation: circle-6;
}

.glowbutton .wrapper .circle.circle-7 { /* Changed from .uiverse to .glowbutton */
  --x: 8px;
  --y: 28px;
  --animation: circle-7;
}

.glowbutton .wrapper .circle.circle-8 { /* Changed from .uiverse to .glowbutton */
  --x: 28px;
  --y: -4px;
  --animation: circle-8;
}

.glowbutton .wrapper .circle.circle-9 { /* Changed from .uiverse to .glowbutton */
  --x: 20px;
  --y: -12px;
  --animation: circle-9;
}

.glowbutton .wrapper .circle.circle-10 { /* Changed from .uiverse to .glowbutton */
  --x: 64px;
  --y: 16px;
  --animation: circle-10;
}

.glowbutton .wrapper .circle.circle-11 { /* Changed from .uiverse to .glowbutton */
  --x: 4px;
  --y: 4px;
  --animation: circle-11;
}

.glowbutton .wrapper .circle.circle-12 { /* Changed from .uiverse to .glowbutton */
  --blur: 14px;
  --x: 52px;
  --y: 4px;
  --animation: circle-12;
}

@keyframes circle-1 {
  33% {
    transform: translate(0px, 16px) translateZ(0);
  }

  66% {
    transform: translate(12px, 64px) translateZ(0);
  }
}

@keyframes circle-2 {
  33% {
    transform: translate(80px, -10px) translateZ(0);
  }

  66% {
    transform: translate(72px, -48px) translateZ(0);
  }
}

@keyframes circle-3 {
  33% {
    transform: translate(20px, 12px) translateZ(0);
  }

  66% {
    transform: translate(12px, 4px) translateZ(0);
  }
}

@keyframes circle-4 {
  33% {
    transform: translate(76px, -12px) translateZ(0);
  }

  66% {
    transform: translate(112px, -8px) translateZ(0);
  }
}

@keyframes circle-5 {
  33% {
    transform: translate(84px, 28px) translateZ(0);
  }

  66% {
    transform: translate(40px, -32px) translateZ(0);
  }
}

@keyframes circle-6 {
  33% {
    transform: translate(28px, -16px) translateZ(0);
  }

  66% {
    transform: translate(76px, -56px) translateZ(0);
  }
}

@keyframes circle-7 {
  33% {
    transform: translate(8px, 28px) translateZ(0);
  }

  66% {
    transform: translate(20px, -60px) translateZ(0);
  }
}

@keyframes circle-8 {
  33% {
    transform: translate(32px, -4px) translateZ(0);
  }

  66% {
    transform: translate(56px, -20px) translateZ(0);
  }
}

@keyframes circle-9 {
  33% {
    transform: translate(20px, -12px) translateZ(0);
  }

  66% {
    transform: translate(80px, -8px) translateZ(0);
  }
}

@keyframes circle-10 {
  33% {
    transform: translate(68px, 20px) translateZ(0);
  }

  66% {
    transform: translate(100px, 28px) translateZ(0);
  }
}

@keyframes circle-11 {
  33% {
    transform: translate(4px, 4px) translateZ(0);
  }

  66% {
    transform: translate(68px, 20px) translateZ(0);
  }
}

@keyframes circle-12 {
  33% {
    transform: translate(56px, 0px) translateZ(0);
  }

  66% {
    transform: translate(60px, -32px) translateZ(0);
  }
}

/* ---------- New Fog Animation CSS ---------- */
.fogwrapper { /* 雖然 HTML 中沒有 fogwrapper，但 CSS 中有定義，先保留 */
  height: 100%;
  position: absolute;
  top: 0;
  width: 100%;
  /* -webkit-filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2); */ /* 舊的濾鏡 */
  /* filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2); */ /* 舊的濾鏡 */
  /* -webkit-filter: blur(1px) saturate(2) sepia(0.6) hue-rotate(330deg); */ /* 上一次的嘗試 */
  /* filter: blur(1px) saturate(2) sepia(0.6) hue-rotate(330deg); */ /* 上一次的嘗試 */
  -webkit-filter: blur(1px) saturate(2.5) sepia(0.3) hue-rotate(0deg) brightness(1.1); /* 新的濾鏡 - 更紅的煙霧 */
  filter: blur(1px) saturate(2.5) sepia(0.3) hue-rotate(0deg) brightness(1.1); /* 新的濾鏡 - 更紅的煙霧 */
}
#foglayer_01, #foglayer_02, #foglayer_03 {
  height: 100%;
  position: absolute;
  width: 200%;
  /* z-index: 0; */ /* 確保在按鈕之下，如果按鈕 z-index 更高 */
}
#foglayer_01 .image01, #foglayer_01 .image02,
#foglayer_02 .image01, #foglayer_02 .image02,
#foglayer_03 .image01, #foglayer_03 .image02 {
  float: left;
  height: 100%;
  width: 50%;
}
#foglayer_01 {
  -webkit-animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
  -moz-animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
  animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
}
#foglayer_02, #foglayer_03 {
  -webkit-animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
  -moz-animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
  animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
}

#foglayer_01 .image01, #foglayer_01 .image02 {
  background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png") center center/cover no-repeat transparent;
}
#foglayer_02 .image01, #foglayer_02 .image02,
#foglayer_03 .image01, #foglayer_03 .image02{
  background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png") center center/cover no-repeat transparent;
}

@-webkit-keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}
@-moz-keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}
@-o-keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}
@keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}

@-webkit-keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}
@-moz-keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}
@-o-keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}
@keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}

@-webkit-keyframes foglayer_03_opacity { /* Note: The provided CSS didn't have keyframes for foglayer_03_opacity, only for 01 and 02. I'm assuming it should use foglayer_02_opacity or similar if not defined */
  0% { opacity: .8; }               /* If #foglayer_03 is meant to have its own unique opacity animation, those keyframes are missing from the provided snippet */
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
  100% { opacity: .8; }
}
@-moz-keyframes foglayer_03_opacity {
  0% { opacity: .8; }
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
  100% { opacity: .8; }
}
@-o-keyframes foglayer_03_opacity {
  0% { opacity: .8; }
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
  100% { opacity: .8; }
}
@keyframes foglayer_03_opacity {
  0% { opacity: .8; }
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
  100% { opacity: .8; }
}

@-webkit-keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}
@-moz-keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}
@-o-keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}
@keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}

@media only screen
  and (min-width: 280px)
  and (max-width: 767px) {
    #foglayer_01 .image01, #foglayer_01 .image02,
    #foglayer_02 .image01, #foglayer_02 .image02,
    #foglayer_03 .image01, #foglayer_03 .image02 {
      width: 100%;
    }
  } 

/* ---------- Login Form Styles ---------- */
/* From Uiverse.io by Praashoo7 */ 
.form {
  display: none; /* 初始隱藏 */
  flex-direction: column;
  gap: 10px;
  padding-left: 2em;
  padding-right: 2em;
  padding-bottom: 0.4em;
  background-color: #171717;
  border-radius: 25px;
  transition: .4s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* 確保在其他元素之上 */
}

.form.show {
  display: flex; /* 顯示時使用 flex */
}

.form:hover {
  transform: translate(-50%, -50%) scale(1.05);
  border: 1px solid black;
}

#heading {
  text-align: center;
  margin: 2em;
  color: rgb(255, 255, 255);
  font-size: 1.2em;
}

.field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 25px;
  padding: 0.6em;
  border: none;
  outline: none;
  color: white;
  background-color: #171717;
  box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

.input-icon {
  height: 1.3em;
  width: 1.3em;
  fill: white;
}

.input-field {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  color: #d3d3d3;
}

.form .btn {
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-top: 2.5em;
}

.button1 {
  padding: 0.5em;
  padding-left: 1.1em;
  padding-right: 1.1em;
  border-radius: 5px;
  margin-right: 0.5em;
  border: none;
  outline: none;
  transition: .4s ease-in-out;
  background-color: #252525;
  color: white;
}

.button1:hover {
  background-color: black;
  color: white;
}

.button2 {
  padding: 0.5em;
  padding-left: 2.3em;
  padding-right: 2.3em;
  border-radius: 5px;
  border: none;
  outline: none;
  transition: .4s ease-in-out;
  background-color: #252525;
  color: white;
}

.button2:hover {
  background-color: black;
  color: white;
}

.button3 {
  margin-bottom: 3em;
  padding: 0.5em;
  border-radius: 5px;
  border: none;
  outline: none;
  transition: .4s ease-in-out;
  background-color: #252525;
  color: white;
}

.button3:hover {
  background-color: red;
  color: white;
}

/* 關閉按鈕樣式 */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 11;
}

.close-btn:hover {
  color: red;
} 