/* =============================================================
   MÀN HÌNH CHỜ (SPLASH)
============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 300;
  background: linear-gradient(135deg, #0f1e40, #1e40af);
  display: flex; align-items: center; justify-content: center;
}
.splash__box { text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.splash__logo { font-size: 54px; }
.splash .spinner--lg { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
.splash p { color: rgba(255,255,255,.8); font-size: 14px; }

/* =============================================================
   ĐĂNG NHẬP
============================================================= */
.login {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1e40 0%, #1e40af 55%, #2563eb 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.login__card {
  background: #fff; border-radius: 22px; width: 100%; max-width: 420px;
  padding: 34px 30px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.login__brand { text-align: center; margin-bottom: 26px; }
.login__logo { font-size: 46px; display: block; margin-bottom: 8px; }
.login__brand h1 { font-size: 23px; font-weight: 800; color: #0f172a; letter-spacing: -.4px; }
.login__brand p { color: #64748b; font-size: 14px; margin: 5px 0 0; }

.login__form { display: flex; flex-direction: column; gap: 15px; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px !important; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 18px; width: 36px; height: 36px; border-radius: 8px;
}
.pass-toggle:hover { background: #f1f5f9; }

.login__row { display: flex; justify-content: flex-end; margin-top: -4px; }
.login__forgot { color: #2563eb; font-size: 13px; font-weight: 600; text-decoration: none; }
.login__forgot:hover { text-decoration: underline; }

.login__error {
  display: none; background: #fef2f2; color: #b91c1c;
  border: 1px solid #fecaca; border-radius: 10px; padding: 10px 13px;
  font-size: 13.5px; font-weight: 500;
}
.login__error.show { display: block; }

.login__hint { text-align: center; color: #94a3b8; font-size: 12.5px; margin: 18px 0 0; line-height: 1.5; }

@media (max-width: 480px) {
  .login__card { padding: 28px 22px 22px; }
}
