/* ============================================
   LOGIN / GUEST PAGE — split-screen auth layout
   Scoped to body.login-page so it never leaks
   into the dashboard (AdminLTE) layouts.
   ============================================ */

body.login-page {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  font-family: 'Inter', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.login-page .auth-shell {
  display: flex;
  min-height: 100vh;
}

/* ---------- Left brand panel ---------- */

body.login-page .auth-aside {
  position: relative;
  flex: 0 0 44%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 56px;
  background: radial-gradient(circle at 20% 15%, #2c5a17 0%, #16330c 55%, #0d2308 100%);
  color: #fff;
  overflow: hidden;
}

body.login-page .auth-aside-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}

body.login-page .auth-aside-glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(420px circle at 85% 12%, rgba(163, 209, 57, 0.32), transparent 60%),
    radial-gradient(360px circle at 10% 92%, rgba(118, 198, 43, 0.24), transparent 60%),
    radial-gradient(260px circle at 90% 80%, rgba(255, 255, 255, 0.08), transparent 65%);
  pointer-events: none;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-2%, 2%) scale(1.05); }
}

body.login-page .auth-aside-inner {
  position: relative;
  z-index: 1;
}

body.login-page .auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 72px;
}

body.login-page .auth-brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

body.login-page .auth-brand span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

body.login-page .auth-aside-title {
  font-size: 32px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -.3px;
  margin: 0 0 16px;
}

body.login-page .auth-aside-sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 380px;
  margin: 0 0 36px;
}

body.login-page .auth-glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 6px 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

body.login-page .auth-aside-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.login-page .auth-aside-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

body.login-page .auth-aside-points li:first-child {
  border-top: none;
}

body.login-page .auth-aside-points i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(163, 209, 57, 0.22);
  color: #a3d139;
  font-size: 10px;
  flex: none;
}

body.login-page .auth-aside-footer {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Right form panel ---------- */

body.login-page .auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}

body.login-page .auth-panel-inner {
  width: 100%;
  max-width: 360px;
  animation: authIn .5s ease-out;
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.login-page .auth-panel-brand-mobile {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

body.login-page .auth-panel-brand-mobile img {
  height: 32px;
}

body.login-page .auth-panel-brand-mobile span {
  font-size: 15px;
  font-weight: 700;
  color: #16330c;
}

body.login-page .login-box-msg {
  font-size: 23px;
  font-weight: 700;
  color: #151b13;
  letter-spacing: -.3px;
  margin: 0 0 6px;
  padding: 0;
}

body.login-page .login-box-msg-sub {
  color: #838f83;
  font-size: 13.5px;
  margin: 0 0 28px;
  padding: 0;
}

body.login-page .auth-field {
  margin-bottom: 18px;
}

body.login-page .auth-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #3c463c;
  margin-bottom: 7px;
}

body.login-page .auth-input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e4e9e2;
  border-radius: 10px;
  background: #f9faf8;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

body.login-page .auth-input i {
  flex: none;
  width: 44px;
  text-align: center;
  color: #9aa79a;
  font-size: 14px;
  transition: color .15s ease;
}

body.login-page .auth-input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px 0 0;
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-size: 14px;
  color: #1c231b;
}

body.login-page .auth-input input::placeholder {
  color: #aeb8ac;
}

body.login-page .auth-input:focus-within {
  border-color: #76c62b;
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(118, 198, 43, 0.14);
}

body.login-page .auth-input:focus-within i {
  color: #5aa621;
}

body.login-page .auth-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 24px;
}

body.login-page .auth-forgot-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #5aa621 !important;
  text-decoration: none !important;
}

body.login-page .auth-forgot-link:hover {
  color: #2c5a17 !important;
  text-decoration: underline !important;
}

body.login-page .auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #5c6b5e;
  user-select: none;
}

body.login-page .auth-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

body.login-page .auth-checkbox-box {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cfd9cc;
  border-radius: 5px;
  background: #fff;
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}

body.login-page .auth-checkbox-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .1s ease;
}

body.login-page .auth-checkbox input:checked + .auth-checkbox-box {
  background: #76c62b;
  border-color: #76c62b;
}

body.login-page .auth-checkbox input:checked + .auth-checkbox-box::after {
  opacity: 1;
}

body.login-page .auth-checkbox input:focus-visible + .auth-checkbox-box {
  box-shadow: 0 0 0 3px rgba(118, 198, 43, 0.25);
}

body.login-page .btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #8ed838 0%, #5aa621 55%, #2c5a17 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .2px;
  cursor: pointer;
  transition: background-position .35s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 24px rgba(46, 92, 24, 0.30);
}

body.login-page .btn-login i {
  font-size: 12px;
  transition: transform .2s ease;
}

body.login-page .btn-login:hover,
body.login-page .btn-login:focus {
  color: #fff;
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(46, 92, 24, 0.38);
  outline: none;
}

body.login-page .btn-login:hover i {
  transform: translateX(3px);
}

body.login-page .btn-login:active {
  transform: translateY(0);
}

body.login-page .alert {
  border: none;
  border-radius: 9px;
  font-size: 13px;
  padding: 11px 14px;
  margin-bottom: 20px;
}

body.login-page .alert-danger {
  background: #fdecec;
  color: #b3261e;
}

body.login-page .alert-success {
  background: #eef8e6;
  color: #3d7a17;
}

body.login-page .switch-login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f6f9f4;
  color: #2c5a17 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid #e9efe6;
  transition: background .15s ease, border-color .15s ease;
}

body.login-page .switch-login-link:hover {
  background: #eef5ea;
  border-color: #d6e6cd;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  body.login-page {
    background:
      radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px),
      radial-gradient(circle at 20% 15%, #2c5a17 0%, #16330c 55%, #0d2308 100%);
    background-size: 22px 22px, auto;
  }

  body.login-page .auth-shell {
    min-height: 100vh;
  }

  body.login-page .auth-aside {
    display: none;
  }

  body.login-page .auth-panel {
    padding: 28px 18px;
    background: transparent;
  }

  body.login-page .auth-panel-inner {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    padding: 30px 24px 26px;
  }

  body.login-page .auth-panel-brand-mobile {
    display: flex;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2ec;
  }
}

@media (max-width: 420px) {
  body.login-page .auth-panel {
    padding: 20px 14px;
  }

  body.login-page .auth-panel-inner {
    padding: 26px 20px 22px;
    border-radius: 16px;
  }

  body.login-page .login-box-msg {
    font-size: 20px;
  }

  body.login-page .auth-panel-brand-mobile img {
    height: 28px;
  }
}

@media (max-width: 340px) {
  body.login-page .switch-login-link {
    font-size: 12px;
    padding: 11px 10px;
  }
}
