/* =====================================================
 * 星桥财经课镜像站 - 密码保护遮罩样式
 * ===================================================== */

body.auth-locked {
  overflow: hidden;
  background: #0a0e27 !important;
}

#authGate {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #0a0e27 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-box {
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.auth-logo img {
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.auth-box h2 {
  color: #ffd700;
  font-size: 1.25rem;
  margin: 0 0 8px;
  font-weight: 600;
}

.auth-sub {
  color: #999;
  font-size: 0.9rem;
  margin: 0 0 28px;
}

#authForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#authPwd {
  width: 100%;
  padding: 14px 16px;
  background: #16213e;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#authPwd:focus {
  border-color: #ffd700;
}

#authForm button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #0a0e27;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

#authForm button:hover {
  opacity: 0.9;
}

#authForm button:active {
  opacity: 0.7;
}

.auth-err {
  color: #ff6b6b !important;
  font-size: 0.85rem !important;
  margin: 4px 0 0 !important;
  min-height: 1.2em;
}

.auth-note {
  color: #666;
  font-size: 0.7rem;
  margin: 24px 0 0;
  line-height: 1.5;
}