/* Login — modern full-screen gate */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  font-family: var(--bs-font-sans-serif);
  background: #0b1220;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(59, 130, 246, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 75%, rgba(20, 184, 166, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(99, 102, 241, 0.22) 0%, transparent 45%),
    linear-gradient(155deg, #0b1220 0%, #111827 40%, #0f172a 100%);
}

.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: login-float 12s ease-in-out infinite;
}

.login-orb-1 {
  width: 320px;
  height: 320px;
  background: #3b82f6;
  top: -8%;
  right: 10%;
  animation-delay: 0s;
}

.login-orb-2 {
  width: 260px;
  height: 260px;
  background: #14b8a6;
  bottom: 5%;
  left: 8%;
  animation-delay: -4s;
}

.login-orb-3 {
  width: 180px;
  height: 180px;
  background: #6366f1;
  top: 45%;
  left: 42%;
  animation-delay: -8s;
}

@keyframes login-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -22px) scale(1.05); }
  66% { transform: translate(-14px, 12px) scale(0.96); }
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 920px;
  align-items: center;
}

@media (min-width: 768px) {
  .login-layout {
    grid-template-columns: 1fr 400px;
    gap: 3rem;
  }
}

.login-hero {
  color: #fff;
  text-align: center;
}

@media (min-width: 768px) {
  .login-hero { text-align: left; }
}

.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.25);
  margin-bottom: 1.25rem;
}

.login-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.login-hero h1 span {
  background: linear-gradient(120deg, #60a5fa 0%, #2dd4bf 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-hero p {
  color: rgba(226, 232, 240, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 28rem;
}

.login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .login-features { justify-content: flex-start; }
}

.login-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-feature i {
  color: #5eead4;
  font-size: 1rem;
}

.login-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 24px 48px -12px rgba(0, 0, 0, 0.45),
    0 0 80px -20px rgba(59, 130, 246, 0.35);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: login-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-card-head {
  padding: 1.75rem 1.75rem 0;
  text-align: center;
}

.login-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 1.45rem;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.55);
}

.login-card-head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.login-card-head p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.login-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap .form-control {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
  height: 3.125rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-wrap .form-control:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
}

.login-toggle-pw {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.35rem 0.5rem;
  line-height: 1;
  border-radius: 0.375rem;
  cursor: pointer;
}

.login-toggle-pw:hover {
  color: #475569;
  background: #f1f5f9;
}

.login-submit {
  height: 3.125rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0d9488 100%);
  background-size: 200% 200%;
  box-shadow: 0 10px 28px -8px rgba(37, 99, 235, 0.55);
  transition: transform 0.15s, box-shadow 0.2s, background-position 0.35s;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px rgba(37, 99, 235, 0.65);
  background-position: 100% 50%;
  color: #fff;
}

.login-submit:active {
  transform: translateY(0);
}

.login-alert {
  border-radius: 0.65rem;
  border: none;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.login-footer-note i {
  color: #22c55e;
}
