@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* ---------- Page ---------- */
.al-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 90px 16px 40px;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: Poppins, system-ui, sans-serif;
}

/* ---------- Forest backdrop ---------- */
.al-forest {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Top bar (logo only) ---------- */
.al-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 22px 5vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

.al-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 20px Poppins, sans-serif;
  color: #fff;
  text-decoration: none;
}

.al-logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #ffaa17;
  color: #000;
  font: 700 20px/1 Poppins, sans-serif;
}

/* ---------- Frosted card ---------- */
.al-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
}

.al-card {
  position: relative;
  padding: 40px 30px 30px;
  border: 1px solid rgba(255, 210, 120, 0.45);
  border-radius: 14px;
  background: rgba(20, 14, 2, 0.4);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 40px -12px rgba(255, 170, 23, 0.25);
  opacity: 0;
  translate: 0 20px;
  scale: 0.96;
  animation: alCardIn 0.8s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ---------- Title ---------- */
.al-title {
  margin: 0 0 28px;
  font-size: 25px;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;
}

/* ---------- Messages ---------- */
.al-error {
  margin: 0 0 16px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 60, 60, 0.12);
  color: #ffb3b3;
  font: 500 12px Poppins, sans-serif;
  animation: alShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.al-note {
  margin: 0 0 16px;
  font: 500 12px Poppins, sans-serif;
  color: #ffaa17;
}

/* ---------- Underline inputs ---------- */
.al-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.al-field {
  position: relative;
}

.al-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 6px 2px;
  border: 0;
  border-bottom: 1.5px solid #ffaa17;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: 400 15px Poppins, sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.al-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.al-input:focus {
  border-bottom-color: #fff;
  /* box-shadow: 0 2px 12px -4px rgba(255, 170, 23, 0.8); */
}

.al-input:disabled {
  opacity: 0.6;
}

.al-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #120d03 inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
}

.al-field-icon,
.al-eye {
  position: absolute;
  right: 2px;
  top: 7px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #ffaa17;
}

.al-eye {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.al-eye:hover {
  color: #fff;
}

/* ---------- Remember me and forgot password ---------- */
.al-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -6px 0 0;
}

.al-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 400 13px Poppins, sans-serif;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  user-select: none;
}

.al-check input {
  width: 14px;
  height: 14px;
  accent-color: #ffaa17;
  cursor: pointer;
}

.al-link {
  padding: 0;
  border: 0;
  background: none;
  color: #ffaa17;
  font: 500 13px Poppins, sans-serif;
  cursor: pointer;
}

.al-link:hover {
  text-decoration: underline;
}

/* ---------- Login button (larger) ---------- */
.al-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 6px;
  background: #ffaa17;
  color: #000;
  font: 600 18px Poppins, sans-serif;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(255, 170, 23, 0.7);
  transition: transform 0.25s, box-shadow 0.3s, filter 0.3s;
}

.al-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.al-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(255, 170, 23, 0.85);
}

.al-btn:hover:not(:disabled)::before {
  left: 120%;
}

.al-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.al-btn:disabled {
  cursor: progress;
  filter: saturate(0.7);
}

.al-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: alSpin 0.7s linear infinite;
}

.al-btn.is-loading .al-btn-text {
  opacity: 0.5;
}

.al-btn.is-loading .al-spinner {
  display: inline-block;
  position: absolute;
}

/* Footer note */
.al-secure {
  margin: 18px 0 0;
  text-align: center;
  font: 400 12px Poppins, sans-serif;
  color: rgba(255, 255, 255, 0.55);
}

/* Staggered entrance */
.al-rise {
  opacity: 0;
  animation: alRise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.08s);
}

/* ---------- Keyframes ---------- */
@keyframes alCardIn {
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes alRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes alSpin {
  to { transform: rotate(360deg); }
}

@keyframes alShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .al-nav {
    padding: 16px 4vw;
  }

  .al-card {
    padding: 34px 22px 24px;
  }

  .al-title {
    font-size: 24px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .al-spinner,
  .al-error {
    animation: none;
  }

  .al-card,
  .al-rise {
    opacity: 1;
    translate: none;
    scale: none;
    animation: none;
  }
}

.login-alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff3d6;
  background: rgba(18, 12, 2, 0.92);
  border: 1px solid rgba(255, 170, 23, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 170, 23, 0.12);
  animation: login-alert-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.login-alert--error {
  border-color: rgba(255, 90, 70, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 90, 70, 0.18);
  animation: login-alert-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both,
    login-alert-shake 0.5s 0.45s both;
}

.login-alert--success {
  border-color: rgba(255, 170, 23, 0.75);
}

.login-alert__icon {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  color: #000;
  background: #ffaa17;
}

.login-alert--error .login-alert__icon {
  background: #ff5a46;
  color: #fff;
}

.login-alert--success .login-alert__icon {
  animation: login-alert-pop 0.5s 0.2s both;
}

.login-alert__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.login-alert__title {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffaa17;
}

.login-alert--error .login-alert__title {
  color: #ff8a7a;
}

.login-alert__text {
  font-size: 14px;
  line-height: 1.4;
}

.login-alert__close {
  background: none;
  border: 0;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.login-alert__close:hover {
  opacity: 1;
}

/* Redirect-ku munnadi countdown bar (1.4s = navigate delay) */
.login-alert__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #ffaa17, #ffd777);
  transform-origin: left;
  animation: login-alert-bar 1.4s linear forwards;
}

@keyframes login-alert-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes login-alert-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes login-alert-pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes login-alert-bar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
button.admin-sidenav__logout {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.al-logo-text {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.al-logo-img {
  display: block;
  width: auto;
  height: 44px;      /* change this to make the logo bigger or smaller */
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 640px) {
  .al-logo-img {
    height: 36px;
  }
}