/* ============================================================
   LOGIN PAGE - MODERN UI 2024
   Font: Inter | Theme: Deep Navy + Electric Blue
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── BASE ───────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

body.login-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%) !important;
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

body.login-page::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ─── LOGIN BOX ──────────────────────────────────────────────── */
.login-box {
  width: 420px !important;
  max-width: 95vw;
  margin: 0 auto !important;
  position: relative;
  z-index: 10;
}

/* ─── LOGO AREA ──────────────────────────────────────────────── */
.login-logo {
  text-align: center;
  margin-bottom: 24px;
  padding: 0 !important;
}

.login-logo a {
  font-family: 'Inter', sans-serif !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 20px rgba(37, 99, 235, 0.4);
}

.login-logo img {
  max-height: 60px !important;
  filter: drop-shadow(0 4px 20px rgba(37, 99, 235, 0.5));
}

/* ─── LOGIN BOX BODY ─────────────────────────────────────────── */
.login-box-body {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 36px 36px 28px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

/* ─── LOGIN MESSAGE ──────────────────────────────────────────── */
.login-box-msg {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  text-align: center;
  margin: 0 0 24px !important;
  letter-spacing: 0.02em;
}

/* ─── FORM TITLE ─────────────────────────────────────────────── */
.login-box-body::before {
  content: 'Welcome To TechBilling';
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

/* ─── FORM GROUPS ─────────────────────────────────────────────── */
.form-group {
  margin-bottom: 18px !important;
  position: relative;
}

/* ─── INPUTS ─────────────────────────────────────────────────── */
.form-control,
.login-box-body .form-control {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  height: 48px !important;
  padding: 12px 44px 12px 16px !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  color: #fff !important;
}

.form-control:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Icons inside inputs */
.has-feedback .form-control-feedback {
  top: 14px !important;
  right: 14px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 16px !important;
}

/* ─── LOGIN BUTTON ───────────────────────────────────────────── */
.btn-primary.btn-block {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  height: 48px !important;
  color: #fff !important;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35) !important;
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
}

.btn-primary.btn-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary.btn-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5) !important;
  color: #fff !important;
}

.btn-primary.btn-block:hover::before {
  opacity: 1;
}

.btn-primary.btn-block:active {
  transform: translateY(0px);
}

/* ─── FOOTER LINKS ─────────────────────────────────────────────-- */
.login-box-body a {
  color: #60a5fa !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.login-box-body a:hover {
  color: #93c5fd !important;
  text-decoration: underline !important;
}

/* ─── VERSION TEXT ─────────────────────────────────────────────── */
.login-box-body p {
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 12px !important;
  font-family: 'Inter', sans-serif !important;
  text-align: center;
  margin: 0 !important;
}

/* ─── DEMO TABLE ─────────────────────────────────────────────────- */
.box-body {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  margin-top: 16px;
  padding: 20px !important;
}

.box-body label {
  color: rgba(255, 255, 255, 0.7) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.box-body .table {
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
}

.box-body .table td {
  border-color: rgba(255, 255, 255, 0.08) !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
}

.box-body .table-bordered {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.box-body .btn-info {
  background: rgba(59, 130, 246, 0.2) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #93c5fd !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  transition: all 0.2s !important;
}

.box-body .btn-info:hover {
  background: rgba(59, 130, 246, 0.4) !important;
  color: #fff !important;
}

.box-body i.fa-info-circle {
  color: #f59e0b !important;
}

.box-body i {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 12px !important;
  font-family: 'Inter', sans-serif !important;
  margin-top: 10px;
  display: block;
}

/* ─── ERROR MESSAGES ──────────────────────────────────────────── */
.text-danger {
  color: #fca5a5 !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  text-align: center;
  margin-bottom: 10px;
}

.text-success {
  color: #6ee7b7 !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  text-align: center;
  margin-bottom: 10px;
}

/* ─── CUSTOM SELECT ───────────────────────────────────────────── */
.custom-select {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 400 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  width: 100%;
  height: 48px;
  padding: 12px 16px;
}

/* ─── ROW SPACING ─────────────────────────────────────────────── */
.login-box-body .row {
  margin-top: 14px;
}

/* ─── FLOATING PARTICLES DECORATION ─────────────────────────── */
body.login-page::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .login-box {
    width: 100% !important;
    padding: 0 12px;
  }

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

  .login-logo a {
    font-size: 24px !important;
  }
}