body.login-page {
  min-height: 100vh;
  margin: 0;
  background: #e8f0f6;
  overflow-x: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #e8f0f6;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 36%,
    transparent 58%
  );
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 6vw;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  padding: 36px 36px 24px;
  box-shadow: 0 24px 60px rgba(12, 38, 82, 0.14);
}

.login-brand {
  margin-bottom: 18px;
}

.login-brand img {
  height: 64px;
  width: auto;
}

.login-card h1,
.login-card h4 {
  font-family: "Sarabun", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a2740;
  margin: 0 0 6px;
  text-align: left;
}

.login-card .login-subtitle {
  color: #6b7a8d;
  font-size: 14px;
  margin: 0 0 22px;
  text-align: left;
}

.login-card .alert {
  border-radius: 10px;
  font-size: 13px;
}

.login-card .alert p {
  margin: 0;
}

.login-card .form-group {
  margin-bottom: 16px;
}

.login-card label {
  font-size: 13px;
  font-weight: 500;
  color: #5b6b7c;
  margin-bottom: 6px;
}

.login-card .form-control {
  height: 46px;
  border-radius: 10px;
  border: 1px solid #d7e2ec;
  background: #f4f7fb;
  box-shadow: none;
  font-size: 14px;
  color: #1a2740;
}

.login-card .form-control:focus {
  background: #ffffff;
  border-color: #1e4e8c;
  box-shadow: 0 0 0 3px rgba(30, 78, 140, 0.12);
}

.login-card .form-control#otp_code {
  height: 56px;
}

.login-actions {
  margin-top: 8px;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #163a6b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}

.login-btn:hover,
.login-btn:focus {
  background: #0f2c54;
  color: #ffffff;
  text-decoration: none;
}

.login-btn:active {
  transform: translateY(1px);
}

.login-links {
  margin-top: 8px;
  text-align: center;
}

.login-links .btn-link {
  font-size: 13px;
  color: #163a6b;
}

.login-links .btn-link.text-muted {
  color: #8a97a6 !important;
}

.login-card .custom-control-label,
.login-card .form-text {
  font-size: 12px;
  color: #6b7a8d;
}

.login-footer {
  margin: 28px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e6eef5;
  font-size: 12px;
  color: #8a97a6;
  text-align: center;
}

.login-footer i {
  color: #e31b23;
}

@media (max-width: 991px) {
  .login-bg {
    background-position: 70% center;
  }

  .login-shell {
    justify-content: center;
    padding: 28px 20px;
  }

  .login-bg::after {
    background: rgba(232, 240, 246, 0.35);
  }
}

@media (max-width: 575px) {
  .login-card {
    padding: 28px 22px 18px;
    border-radius: 18px;
  }

  .login-card h1,
  .login-card h4 {
    font-size: 24px;
  }

  .login-btn {
    width: 100%;
  }
}
