/* public/css/pages/login.css — Login Page */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

/* === 動態漸層背景 === */
.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
              radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 45%);
  animation: bgShift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bgShift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 3%) rotate(2deg); }
}

/* === 登入卡片 === */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 48px 40px;
  animation: fadeIn 0.6s ease-out;
}

/* === Logo === */
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo__title {
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
}

.login-logo__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 2px;
}

/* === 表單 === */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form .form-group {
  gap: 8px;
}

/* === 忘記密碼 === */
.login-forgot {
  text-align: center;
  margin-top: 4px;
}
.login-forgot a {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.login-forgot a:hover {
  color: var(--primary);
}

/* === 頁尾 === */
.login-footer {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  z-index: 1;
}

/* === RWD === */
@media (max-width: 480px) {
  .login-card {
    margin: 16px;
    padding: 36px 24px;
  }
  .login-logo__title {
    font-size: 2rem;
  }
}
