/* ==========================================================================
   login-modern.css
   Scoped redesign for the login page only.
   Every rule is namespaced under body.login-modern-page so it cannot
   affect the register page, dashboard, or any other screen that reuses
   the same base class names (login-box, login-box-body, btn-signin, etc).
   ========================================================================== */

body.login-modern-page {
  margin: 0;
  min-height: 100vh;
  height: auto;
  background: linear-gradient(135deg, #16324f 0%, #2d5f7c 45%, #c9964a 100%);
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.login-modern-page * {
  box-sizing: border-box;
}

/* ---- Card shell ---- */
body.login-modern-page .login-box {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  animation: lm-fade-up 0.5s ease both;
}

@keyframes lm-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Logo / brand ---- */
body.login-modern-page .login-logo {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.login-modern-page .login-logo span {
  color: #f4d9a8 !important;
}

body.login-modern-page .login-logo .lm-logo-badge {
  width: 96px;
  height: 80px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), 0 0 0 6px rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 10px;
}

body.login-modern-page .login-logo .lm-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.login-modern-page .login-logo .lm-tagline {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: none;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ---- Glassmorphism card body ---- */
body.login-modern-page .login-box-body {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(10, 20, 35, 0.35), 0 2px 8px rgba(10, 20, 35, 0.12);
  opacity: 1;
  color: #3a3a38;
}

body.login-modern-page .login-box-msg {
  padding: 0 0 22px 0;
  font-size: 14.5px;
  color: #6b6a66;
  font-weight: 500;
}

/* ---- Inputs ---- */
body.login-modern-page .form-group {
  position: relative;
  margin-bottom: 18px;
}

body.login-modern-page .form-control {
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e3e1d8;
  background: #f7f6f2;
  padding: 0 44px 0 16px;
  font-size: 14.5px;
  color: #333230;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.login-modern-page .form-control:focus {
  border-color: #c9964a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 150, 74, 0.18);
  outline: none;
}

body.login-modern-page .form-control::placeholder {
  color: #a6a49a;
}

body.login-modern-page .form-control-feedback {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #a6a49a;
  pointer-events: none;
  line-height: normal;
}

body.login-modern-page .has-feedback .form-control {
  padding-right: 44px;
}

body.login-modern-page small.text-danger {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

/* ---- Remember me / forgot password row ---- */
body.login-modern-page .lm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  flex-wrap: wrap;
  gap: 8px;
}

body.login-modern-page .lm-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #6b6a66;
  cursor: pointer;
  user-select: none;
}

body.login-modern-page .lm-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #c9964a;
  cursor: pointer;
  margin: 0;
}

body.login-modern-page .lm-forgot {
  font-size: 13px;
  color: #a9742c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

body.login-modern-page .lm-forgot:hover,
body.login-modern-page .lm-forgot:focus {
  color: #7a521c;
  text-decoration: underline;
}

/* ---- Submit button ---- */
body.login-modern-page .btn-signin {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #d9a75a, #a9742c);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(169, 116, 44, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body.login-modern-page .btn-signin:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(169, 116, 44, 0.45);
  filter: brightness(1.04);
}

body.login-modern-page .btn-signin:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(169, 116, 44, 0.35);
}

body.login-modern-page .btn-signin:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 150, 74, 0.35), 0 8px 20px rgba(169, 116, 44, 0.35);
}

/* ---- Footer meta (kept available, hidden per current requirement) ---- */
body.login-modern-page .lm-footer-meta {
  display: none;
}

/* ---- Responsive breakpoints ---- */
/* Mobile-first base above already suits 320-414px. Refinements below. */

@media (max-width: 359px) {
  body.login-modern-page .login-box-body {
    padding: 24px 18px;
    border-radius: 16px;
  }
  body.login-modern-page .login-logo {
    font-size: 24px;
  }
  body.login-modern-page .login-logo .lm-logo-badge {
    width: 80px;
    height: 66px;
  }
}

@media (min-width: 360px) and (max-width: 414px) {
  body.login-modern-page .login-box-body {
    padding: 28px 22px;
  }
}

@media (min-width: 415px) and (max-width: 767px) {
  body.login-modern-page .login-box {
    max-width: 380px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  body.login-modern-page .login-box {
    max-width: 410px;
  }
}

@media (min-width: 1024px) {
  body.login-modern-page .login-box {
    max-width: 420px;
  }
  body.login-modern-page .login-box-body {
    padding: 36px 32px;
  }
}
