/* ============================================================
   登录页样式 - 现代化高端设计
   ============================================================ */

/* 背景：深色渐变+动态光斑 */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 30%, #0d2137 60%, #0a1628 100%);
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 背景光斑 */
.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,119,255,0.15) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: floatA 8s ease-in-out infinite;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,196,26,0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: floatB 10s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.15); }
}

/* 登录卡片 */
.login-box {
  width: 420px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 48px 40px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 品牌区域 */
.login-box .brand {
  text-align: center;
  margin-bottom: 8px;
}
.login-box .brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1677FF, #0958d9);
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(22,119,255,0.35);
}
.login-box .brand-icon svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.login-box h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
.login-box .subtitle {
  font-size: 13px;
  color: #8c8c8c;
  margin-bottom: 32px;
  font-weight: 400;
}

/* 表单组 */
.login-box .form-group {
  margin-bottom: 20px;
  position: relative;
}
.login-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

/* 输入框 - 现代风格 */
.login-box .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.login-box .input-icon {
  position: absolute;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
}
.login-box .input-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #b0b8c4;
  stroke-width: 2;
  transition: stroke 0.25s;
}
.login-box input {
  width: 100%;
  height: 48px;
  background: #f5f7fa;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0 16px 0 44px;
  font-size: 14px;
  color: #1a1a2e;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
.login-box input::placeholder {
  color: #b0b8c4;
}
.login-box input:focus {
  background: #fff;
  border-color: #1677FF;
  box-shadow: 0 0 0 3px rgba(22,119,255,0.1);
}
.login-box input:focus ~ .input-icon svg,
.login-box input:focus + .input-icon svg {
  stroke: #1677FF;
}

/* 登录按钮 */
.login-box .login-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #1677FF 0%, #0958d9 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(22,119,255,0.35);
}
.login-box .login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,119,255,0.45);
}
.login-box .login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22,119,255,0.3);
}

/* 错误提示 */
.login-err {
  color: #ff4d4f;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  display: none;
  padding: 10px 14px;
  background: #fff2f0;
  border-radius: 8px;
  border: 1px solid #ffccc7;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 底部 */
.login-box .footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: #b0b8c4;
}

/* 响应式 */
@media (max-width: 480px) {
  .login-box {
    width: 92%;
    padding: 32px 24px 28px;
    border-radius: 16px;
  }
  .login-box h2 { font-size: 22px; }
}