/* Admin login — glassmorphism + animated background (scoped) */
.login-glass-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #fff;
  overflow-x: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.login-glass-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, #1a1412 0%, #2d1815 35%, #1f1518 60%, #12100f 100%);
  overflow: hidden;
}

.login-glass-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 123, 255, 0.15), transparent 55%);
  pointer-events: none;
}

.login-glass-shape {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  opacity: 0.45;
  filter: blur(0.5px);
  animation: login-glass-float 18s ease-in-out infinite;
  box-shadow:
    inset -8px -8px 24px rgba(255, 255, 255, 0.12),
    8px 12px 32px rgba(0, 0, 0, 0.2);
}

.login-glass-shape--1 {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  left: -8%;
  top: 12%;
  background: linear-gradient(160deg, rgba(135, 206, 250, 0.55), rgba(0, 123, 255, 0.25));
  animation-delay: 0s;
  animation-duration: 22s;
}

.login-glass-shape--2 {
  width: min(36vw, 220px);
  height: min(36vw, 220px);
  right: -5%;
  top: 8%;
  background: linear-gradient(200deg, rgba(100, 180, 255, 0.5), rgba(0, 80, 160, 0.3));
  animation-delay: -4s;
  animation-duration: 19s;
  border-radius: 55% 45% 55% 45% / 45% 55% 45% 55%;
}

.login-glass-shape--3 {
  width: min(50vw, 320px);
  height: min(50vw, 320px);
  left: 15%;
  bottom: -12%;
  background: linear-gradient(30deg, rgba(70, 150, 220, 0.4), rgba(0, 40, 90, 0.35));
  animation-delay: -7s;
  animation-duration: 25s;
}

.login-glass-shape--4 {
  width: min(28vw, 180px);
  height: min(28vw, 180px);
  right: 18%;
  bottom: 22%;
  background: linear-gradient(90deg, rgba(135, 206, 250, 0.5), rgba(0, 100, 200, 0.2));
  animation-delay: -2s;
  animation-duration: 16s;
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
}

.login-glass-shape--5 {
  width: min(22vw, 140px);
  height: min(22vw, 140px);
  left: 42%;
  top: 38%;
  background: linear-gradient(220deg, rgba(173, 216, 255, 0.35), rgba(0, 60, 120, 0.25));
  animation-delay: -10s;
  animation-duration: 14s;
  border-radius: 35% 65% 70% 30% / 60% 40% 60% 40%;
}

.login-glass-shape--6 {
  width: 120px;
  height: 160px;
  right: 35%;
  top: 55%;
  background: linear-gradient(180deg, rgba(120, 190, 255, 0.35), rgba(0, 50, 100, 0.2));
  animation-delay: -5s;
  animation-duration: 21s;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  transform: rotate(-12deg);
}

@keyframes login-glass-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(18px, -24px) rotate(8deg) scale(1.03);
  }
  50% {
    transform: translate(-14px, 12px) rotate(-5deg) scale(0.98);
  }
  75% {
    transform: translate(10px, 20px) rotate(4deg) scale(1.02);
  }
}

.login-glass-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
}

.login-glass-card {
  width: 100%;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-glass-logo {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.85rem;
}

.login-glass-card h1 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  letter-spacing: -0.02em;
}

.login-glass-card .login-glass-lead {
  margin: -0.35rem 0 0.85rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.login-glass-form fieldset.login-glass-credentials {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.login-glass-field {
  margin-bottom: 0.75rem;
}

.login-glass-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.3rem;
}

.login-glass-input {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #1a2332;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-glass-input::placeholder {
  color: #8899aa;
}

.login-glass-input:focus {
  outline: none;
  border-color: rgba(60, 75, 95, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-glass-password-wrap {
  position: relative;
}

.login-glass-password-wrap .login-glass-input {
  padding-right: 2.75rem;
}

.login-glass-toggle-pw {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #5c6b7a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.login-glass-toggle-pw:hover {
  color: #1a2332;
  background: rgba(0, 0, 0, 0.06);
}

.login-glass-forgot {
  display: block;
  text-align: right;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}

.login-glass-forgot a {
  font-size: 0.7rem;
  color: rgba(255, 180, 170, 0.95);
  text-decoration: none;
}

.login-glass-forgot a:hover {
  text-decoration: underline;
}

.login-glass-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #ff8f7f 0%, #ff7f6e 45%, #e85d4c 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 127, 110, 0.45);
  transition: filter 0.15s ease, transform 0.1s ease;
}

.login-glass-submit:hover {
  filter: brightness(1.05);
}

.login-glass-submit:active {
  transform: translateY(1px);
}

.login-glass-back-wrap {
  margin: 1rem 0 0;
  text-align: center;
}

.login-glass-back-link {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.login-glass-back-link:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.login-glass-card .alert-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(255, 150, 160, 0.45);
  color: #ffe8eb;
  border-radius: 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .login-glass-shape {
    animation: none;
  }
}
