section.login {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1f1f 0%, #001a1a 50%, #002626 100%);
  overflow: hidden;
  color: white;
  padding: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
  
  .title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #00ff9d, #00fff5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* 表單 */
  .input-wrapper {
    margin-bottom: 25px;
    position: relative;
  }
  
  label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(0, 255, 157, 0.3);
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 18px;
  }

  input:focus {
    outline: none;
    border-color: #00ff9d;
    background: rgba(255, 255, 255, 0.08) !important;
    color: inherit;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
  }

  input::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }
  
  .submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00ff9d 0%, #00cc7d 100%);
    border: none;
    border-radius: 10px;
    color: #001a1a;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 255, 157, 0.4);
    margin-top: 10px;
  }
  
  .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 157, 0.6);
  }
  
  .submit-btn:active {
    transform: translateY(0);
  }
  
  .login-container {
    margin: 3rem auto;
  }
  
  .login-content {
    background: rgba(10, 35, 35, 0.85);
    border: 2px solid rgba(0, 255, 157, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 255, 157, 0.2);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 10;
  }
}

/* ========== 背景效果層 ========== */

/* 動態網格背景 */
.login::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  z-index: 1;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* 動態波浪層 */
.login::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 255, 157, 0.1) 100%
  );
  border-radius: 45% 55% 50% 50%;
  animation: wave-animation 25s infinite linear;
  z-index: 1;
  opacity: 0.3;
}

@keyframes wave-animation {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(-25%) rotate(180deg);
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}

/* ========== 發光球體效果 ========== */

/* 第一個光球 - 青綠色 */
.login .login-content::before {
  content: "";
  position: fixed;
  top: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 157, 0.5) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: float-orb-1 20s infinite ease-in-out;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

/* 第二個光球 - 藍色 */
.login .login-content::after {
  content: "";
  position: fixed;
  top: 60%;
  right: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(77, 159, 255, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: float-orb-2 23s infinite ease-in-out;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

/* 第三個光球 - 青藍色 (使用 title 元素) */
.login .title::before {
  content: "";
  position: fixed;
  bottom: 20%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 245, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(80px);
  animation: float-orb-3 27s infinite ease-in-out;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes float-orb-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes float-orb-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, 30px) scale(1.08);
  }
  66% {
    transform: translate(25px, -25px) scale(0.92);
  }
}

@keyframes float-orb-3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(35px, 35px) scale(1.1);
  }
}

/* ========== 粒子效果 ========== */

.login .title::after,
.login .submit-btn::before,
.login .submit-btn::after,
.login .input-wrapper:first-of-type::before {
  content: "";
  position: fixed;
  width: 2px;
  height: 2px;
  background: #00fff5;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 
    100px 200px 0 0 #00fff5, 
    -50px 150px 0 0 #00fff5,
    200px 100px 0 0 #00d4ff, 
    -100px 300px 0 0 #00d4ff, 
    150px 400px 0 0 #00fff5,
    -150px 250px 0 0 #4d9fff, 
    250px 350px 0 0 #00fff5, 
    50px 450px 0 0 #00d4ff;
  z-index: 3;
  pointer-events: none;
}

.login .title::after {
  left: 10%;
  animation: particle-float-1 15s infinite linear;
}

.login .submit-btn::before {
  left: 30%;
  animation: particle-float-2 18s infinite linear;
}

.login .submit-btn::after {
  left: 50%;
  animation: particle-float-3 20s infinite linear;
}

.login .input-wrapper:first-of-type::before {
  left: 70%;
  animation: particle-float-4 16s infinite linear;
}

@keyframes particle-float-1 {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
    transform: translateY(90vh) translateX(20px) scale(1);
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) translateX(100px) scale(0);
    opacity: 0;
  }
}

@keyframes particle-float-2 {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
    transform: translateY(85vh) translateX(-30px) scale(1);
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) translateX(-80px) scale(0);
    opacity: 0;
  }
}

@keyframes particle-float-3 {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  12% {
    opacity: 0.8;
    transform: translateY(88vh) translateX(40px) scale(1);
  }
  88% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) translateX(120px) scale(0);
    opacity: 0;
  }
}

@keyframes particle-float-4 {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  8% {
    opacity: 0.8;
    transform: translateY(92vh) translateX(-20px) scale(1);
  }
  92% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) translateX(-60px) scale(0);
    opacity: 0;
  }
}