/* ============================================================
   Modern Login — Overlay cho trang đăng nhập AdminLTE 2
   Gradient background + Glass card + Modern inputs
   ============================================================ */

/* ---------- Full page background ---------- */
.login-page {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4f46e5 60%, #7c3aed 100%) !important;
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.login-page::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Login box container ---------- */
.login-box {
  width: 400px;
  max-width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: loginFadeIn 0.6s ease-out;
}

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

/* ---------- Login logo ---------- */
.login-logo {
  margin-bottom: 20px;
}

.login-logo a {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.login-logo a b {
  font-weight: 800;
}

/* ---------- Login card (glass effect) ---------- */
.login-box-body {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px !important;
  padding: 36px 32px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

.login-box-msg {
  color: #64748b !important;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 24px !important;
  padding: 0 !important;
  text-align: center;
}

/* ---------- Form inputs ---------- */
.login-box-body .form-control {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  height: auto !important;
  font-size: 14px;
  color: #1e293b !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: 'Inter', sans-serif !important;
}

.login-box-body .form-control:focus {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
  background: #ffffff !important;
  outline: none !important;
}

.login-box-body .form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Hide AdminLTE feedback icons, replace with cleaner layout */
.login-box-body .form-group.has-feedback {
  margin-bottom: 18px;
}

.login-box-body .form-control-feedback {
  color: #94a3b8 !important;
  line-height: 44px !important;
  right: 12px;
  top: 0;
  font-size: 15px;
}

/* ---------- Remember me checkbox ---------- */
.login-box-body .checkbox label {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
  padding-left: 4px;
}

/* Override iCheck styling */
.login-box-body .icheckbox_square-blue {
  border-radius: 4px;
}

/* ---------- Login button ---------- */
.login-box-body .btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 11px 24px !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: 'Inter', sans-serif !important;
  width: 100%;
}

.login-box-body .btn-primary:hover {
  background: linear-gradient(135deg, #3730a3 0%, #312e81 100%) !important;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4) !important;
  transform: translateY(-1px);
}

.login-box-body .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3) !important;
}

/* ---------- Fix layout for login row ---------- */
.login-box-body .row {
  margin-top: 6px;
}

.login-box-body .row .col-xs-8 {
  display: flex;
  align-items: center;
}

.login-box-body .row .col-xs-4 {
  width: 100%;
  float: none;
  margin-top: 10px;
}

.login-box-body .row .col-xs-8 {
  width: 100%;
  float: none;
}

/* ---------- Validation errors ---------- */
.login-box-body .alert,
.login-box-body .text-danger,
.login-box-body .help-block {
  border-radius: 8px;
  font-size: 13px;
}

/* ---------- Links ---------- */
.login-box-body a {
  color: #4f46e5;
  font-weight: 500;
  transition: color 0.15s ease;
}

.login-box-body a:hover {
  color: #3730a3;
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .login-box {
    width: 100%;
    padding: 0 16px;
  }

  .login-box-body {
    padding: 28px 24px !important;
    border-radius: 14px !important;
  }

  .login-logo a {
    font-size: 22px;
  }
}

/* ---------- Subtle shimmer on card ---------- */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.login-box-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.4), transparent);
  background-size: 200% auto;
  animation: shimmer 3s ease-in-out infinite;
  border-radius: 18px 18px 0 0;
}

.login-box-body {
  position: relative;
  overflow: hidden;
}
