* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; font-family: "Microsoft YaHei", Arial, sans-serif; }
body {
  min-height: 100vh;
  color: #f7f5ed;
  background:
    linear-gradient(90deg, rgba(9, 15, 14, 0.92), rgba(14, 23, 20, 0.84)),
    radial-gradient(circle at 34% 20%, rgba(197, 144, 71, 0.18), transparent 34%),
    #0b1110;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.login-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px 92px;
}
.login-card {
  width: min(100%, 560px);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(8, 16, 15, 0.78);
  box-shadow: 0 30px 90px rgba(0,0,0,0.34);
}
.login-cover img { width: 100%; height: auto; display: block; border-radius: 6px; object-fit: cover; }
.login-title span { display: block; margin-top: 18px; color: #e7b665; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.login-title h1 { margin: 8px 0 4px; font-size: clamp(30px, 5vw, 42px); line-height: 1.05; }
.login-title p { margin: 0 0 22px; color: rgba(255,255,255,0.7); font-weight: 700; }
label { display: block; margin: 14px 0; color: rgba(255,255,255,0.58); font-size: 13px; font-weight: 800; }
input, select {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid rgba(214, 174, 106, 0.34);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  color: #111814;
  font-size: 16px;
  outline: none;
}
input:focus, select:focus { border-color: #e7b665; box-shadow: 0 0 0 3px rgba(231,182,101,0.18); }
.login-job-card {
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(214, 174, 106, 0.28);
  border-radius: 8px;
  background: rgba(214, 174, 106, 0.12);
}
.login-job-card span, .login-job-card small { display: block; color: rgba(255,255,255,0.56); font-weight: 800; }
.login-job-card strong { display: block; margin-top: 4px; font-size: 20px; color: #fff; }
.login-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
button {
  min-height: 52px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
button:disabled { opacity: 0.65; cursor: wait; }
.primary-btn { background: linear-gradient(135deg, #f0b35f, #d99441); color: #15100b; border-color: transparent; }
.secondary-btn, .admin-login-link { background: rgba(255,255,255,0.1); }
.admin-login-link { position: fixed; right: 20px; bottom: 20px; padding: 0 18px; backdrop-filter: blur(10px); }
.auth-message { min-height: 22px; margin-top: 10px; color: #ffcf9a; font-weight: 800; }
.modal-panel { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,0.62); }
.modal-card { width: min(100%, 460px); padding: 22px; border-radius: 8px; border: 1px solid rgba(214,174,106,0.28); background: #101815; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-head strong { font-size: 22px; }
.icon-btn { width: 42px; min-height: 42px; border-radius: 50%; padding: 0; }
.register-tip { margin: -4px 0 12px; color: rgba(255,255,255,0.55); font-size: 13px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 24, 20, 0.92);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.login-beian {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}
.login-beian a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(12px);
}
.login-beian img { display: block; width: 20px; height: 20px; }
@media (max-width: 640px) {
  .login-screen { align-items: start; padding-top: 18px; }
  .login-actions { grid-template-columns: 1fr; }
  .admin-login-link { right: 12px; bottom: 12px; min-height: 42px; }
}
