/* ============================================================
   宏信报账 v1.0.2 - 登录页样式
   ============================================================ */

/* ===== 启动加载画面 ===== */
.hx-splash {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0F3460 0%, #1A5276 50%, #2980B9 100%);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease 1.2s;
}
.hx-splash.fade-out { opacity: 0; pointer-events: none; }

.hx-splash-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  animation: splash-bounce 1s ease-in-out infinite alternate;
}
@keyframes splash-bounce {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hx-splash-title {
  color: #fff; font-size: 24px; font-weight: 700;
  margin-top: 20px;
  animation: splash-fade-up 0.6s ease 0.2s both;
}
.hx-splash-sub {
  color: rgba(255,255,255,0.6); font-size: 13px;
  margin-top: 8px;
  animation: splash-fade-up 0.6s ease 0.4s both;
}
.hx-splash-loader {
  margin-top: 28px;
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: splash-spin 0.8s linear infinite;
}
@keyframes splash-spin { to { transform: rotate(360deg); } }
@keyframes splash-fade-up {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hx-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F3460 0%, #1A5276 50%, #2980B9 100%);
  padding: var(--spacing-md);
}

.hx-login-card {
  width: 400px;
  max-width: 100%;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-xl);
  animation: hx-modal-in 0.4s ease;
}

.hx-login-logo {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.hx-login-logo .hx-logo-icon {
  width: 64px;
  height: 64px;
  background: var(--theme-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  font-size: 28px;
  color: white;
}

.hx-login-logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--theme-primary);
  margin-bottom: 4px;
}

.hx-login-logo p {
  font-size: 13px;
  color: var(--text-secondary);
}

.hx-login-form .hx-form-group {
  margin-bottom: var(--spacing-md);
}

.hx-login-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.hx-login-form input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  transition: all var(--transition);
}

.hx-login-form input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15,52,96,0.1);
}

.hx-login-form .hx-btn {
  width: 100%;
  height: 42px;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  margin-top: var(--spacing-sm);
}

.hx-login-error {
  background: var(--danger-light);
  color: var(--danger);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: var(--spacing-md);
  display: none;
}

.hx-login-footer {
  text-align: center;
  margin-top: var(--spacing-lg);
  font-size: 12px;
  color: var(--text-muted);
}
