* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #05070A; color: #fff; font-family: "Microsoft YaHei", Arial, sans-serif; min-height: 100vh; }
.login-container { width: 100%; max-width: 420px; min-height: 100vh; margin: 0 auto; padding: 30px 20px; display: flex; flex-direction: column; justify-content: center; }
.logo-area { text-align: center; margin-bottom: 45px; }

/* Logo */
.logo { 
  width: 180px; 
  height: 180px; 
  object-fit: contain; 
  display: block; 
  margin: 0 auto 12px auto;
}

/* 品牌名称 */
.brand-main { 
  font-size: 24px; 
  font-weight: bold; 
  color: #fff; 
  letter-spacing: 2px;
  margin-top: 4px;
}
.brand-sub { 
  margin-top: 8px;
  color: #7F8B98; 
  font-size: 14px; 
  letter-spacing: 3px;
}

/* ===== 输入框容器 ===== */
.input-box { 
  margin-bottom: 18px; 
  position: relative;
}

/* ===== 所有输入框统一样式 - 居中对齐 ===== */
.input-box input { 
  width: 100%; 
  height: 58px; 
  padding: 0 20px; 
  background: #18212B; 
  border: none; 
  outline: none; 
  border-radius: 18px; 
  color: #fff; 
  font-size: 16px; 
  text-align: center;
  line-height: 58px;
  display: block;
}

/* ===== 密码框 - 右侧留出眼睛按钮空间 ===== */
.password-box input { 
  padding-right: 55px;
  padding-left: 55px;
}

/* ===== placeholder 样式 - 居中对齐 ===== */
.input-box input::placeholder {
  color: #7F8B98;
  font-size: 16px;
  line-height: 58px;
  text-align: center;
  vertical-align: middle;
}

/* ===== 输入框聚焦 ===== */
.input-box input:focus { 
  box-shadow: 0 0 0 2px rgba(36,87,166,.45); 
}

/* ===== 眼睛按钮 ===== */
.eye-btn { 
  position: absolute; 
  right: 18px;
  top: 50%; 
  transform: translateY(-50%);
  border: none; 
  background: none; 
  color: #7F8B98; 
  font-size: 20px; 
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.eye-btn:hover { color: #fff; }
.eye-btn:active { color: #2457A6; }

/* ===== 登录按钮 ===== */
.login-btn { 
  width: 100%; 
  height: 58px; 
  margin-top: 12px; 
  border: none; 
  border-radius: 18px; 
  background: #2457A6; 
  color: #fff; 
  font-size: 18px; 
  font-weight: bold; 
  cursor: pointer; 
}
.login-btn:active { transform: scale(.97); }

/* ===== 底部操作 ===== */
.bottom-actions { 
  margin-top: 32px; 
  display: flex; 
  justify-content: center; 
  gap: 80px; 
}
.bottom-actions button { 
  border: none; 
  background: none; 
  color: #B8C2CC; 
  font-size: 16px; 
  cursor: pointer; 
}
.bottom-actions button:active { color: #fff; }

/* ============================================================
   管理员登录弹窗
   ============================================================ */
.admin-login-overlay {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.admin-login-overlay.active {
  display: flex;
}

.admin-login-box {
  width: 90%;
  max-width: 400px;
  background: #18212B;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: adminFadeIn 0.3s ease;
}

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.admin-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: #1C2530;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.admin-login-close {
  background: none;
  border: none;
  color: #7F8B98;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.admin-login-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-login-body {
  padding: 24px 24px 30px;
}

.admin-login-body .input-box input {
  height: 50px;
  line-height: 50px;
}
.admin-login-body .input-box input::placeholder {
  line-height: 50px;
}
.admin-login-body .login-btn {
  height: 50px;
  font-size: 16px;
}
.admin-login-body .password-box input {
  padding-right: 45px;
  padding-left: 45px;
}

/* ===== 小屏适配 ===== */
@media (max-height: 700px) { 
  .logo-area { margin-bottom: 25px; } 
  .logo { width: 120px; height: 120px; }
  .brand-main { font-size: 20px; }
  .input-box input { height: 50px; line-height: 50px; }
  .input-box input::placeholder { line-height: 50px; }
  .password-box input { 
    padding-right: 45px;
    padding-left: 45px;
  }
}
