/* ===========================================================
   INDEX.CSS — Landing / Login Page
   This page has its own standalone layout (no sidebar/main-
   content shell), so almost everything here is unique to it.
   Only the universal reset (*) is shared with common.css.
   =========================================================== */

body {
  font-family: "Inter", sans-serif;
  background: #eaf2fb;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(26, 124, 189, 0.08) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(18, 91, 163, 0.06) 0%,
      transparent 35%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 2px,
      transparent 2px,
      transparent 8px
    );
  pointer-events: none;
}
.landing-panel {
  max-width: 1280px;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 3.5rem;
  box-shadow:
    0 30px 60px -20px rgba(18, 91, 163, 0.4),
    0 0 0 1px rgba(210, 240, 250, 0.6) inset;
  padding: 2.8rem 3.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  transition: all 0.3s ease;
  animation: floatIn 0.7s cubic-bezier(0.15, 0.85, 0.35, 1.05) forwards;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.content {
  flex: 1 1 400px;
}
.badge {
  display: inline-block;
  background: rgba(30, 120, 200, 0.15);
  color: #1a5ea8;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(60, 150, 210, 0.3);
  margin-bottom: 2rem;
  animation: slideIn 0.5s 0.1s both;
}
h1 {
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #125ba3;
  margin-bottom: 1rem;
  animation: slideIn 0.5s 0.15s both;
}
.highlight {
  color: #1a7cbd;
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 6px;
  background: rgba(26, 124, 189, 0.2);
  border-radius: 8px;
  z-index: -1;
}
.subhead {
  font-size: 1.2rem;
  color: #125ba3;
  font-weight: 400;
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.6;
  animation: slideIn 0.5s 0.2s both;
  border-left: 4px solid #1a7cbd;
  padding-left: 1.5rem;
  background: rgba(235, 245, 255, 0.4);
  border-radius: 0 40px 40px 0;
}
.stats-mini {
  display: flex;
  gap: 2.2rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
  animation: slideIn 0.5s 0.25s both;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a5ea8;
}
.stat-label {
  font-size: 0.9rem;
  color: #416f64;
  letter-spacing: 0.3px;
}
.btn-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  animation: slideIn 0.5s 0.3s both;
}
.btn-primary {
  background: #1a7cbd;
  border: none;
  padding: 1rem 2.8rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1.1rem;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(26, 124, 189, 0.35);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-primary i {
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.btn-primary:hover {
  background: #0e5a8f;
  box-shadow: 0 12px 28px rgba(20, 95, 130, 0.45);
  transform: translateY(-3px);
}
.btn-primary:hover i {
  transform: translateX(5px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid #1a7cbd;
  padding: 0.9rem 2rem;
  border-radius: 60px;
  font-weight: 500;
  color: #1a7cbd;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-outline:hover {
  background: rgba(26, 124, 189, 0.08);
  border-color: #0e5a8f;
  color: #0e5a8f;
  transform: translateY(-2px);
}
.visual {
  flex: 0 1 320px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.circle-blob {
  width: 280px;
  height: 280px;
  background: linear-gradient(145deg, #c9f0e6, #a3ddcf);
  border-radius: 42% 58% 70% 30% / 44% 38% 62% 56%;
  animation: morph 12s ease-in-out infinite;
  box-shadow:
    30px 35px 50px -25px rgba(26, 124, 189, 0.3),
    -10px -10px 30px rgba(255, 255, 255, 0.7) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.logo-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  animation: floatLogo 6s ease-in-out infinite;
}
@keyframes floatLogo {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}
@keyframes morph {
  0% {
    border-radius: 42% 58% 70% 30% / 44% 38% 62% 56%;
  }
  25% {
    border-radius: 58% 42% 50% 50% / 60% 44% 56% 40%;
  }
  50% {
    border-radius: 38% 62% 44% 56% / 52% 38% 62% 48%;
  }
  75% {
    border-radius: 62% 38% 56% 44% / 48% 62% 38% 52%;
  }
  100% {
    border-radius: 42% 58% 70% 30% / 44% 38% 62% 56%;
  }
}
.floating-icon {
  position: absolute;
  font-size: 1.5rem;
  color: rgba(26, 124, 189, 0.4);
  background: rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: float 6s infinite alternate;
}
.floating-icon:nth-child(1) {
  top: 10px;
  right: 20px;
  animation-delay: 0s;
}
.floating-icon:nth-child(2) {
  bottom: 20px;
  left: -5px;
  animation-delay: 1s;
  background: rgba(200, 240, 255, 0.6);
}
.floating-icon:nth-child(3) {
  top: 60px;
  left: 30px;
  animation-delay: 2s;
}
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-15px) rotate(5deg);
  }
}
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-18px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 91, 163, 0.2);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}
.login-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  width: 100%;
  max-width: 400px;
  border-radius: 2.5rem;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 40px 70px -15px rgba(18, 91, 163, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.7);
  animation: modalPop 0.3s ease;
  position: relative;
}
@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.login-card h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #125ba3;
  margin-bottom: 1.8rem;
  letter-spacing: -0.02em;
}
.input-field {
  width: 100%;
  padding: 1rem 1.4rem;
  border: 1.5px solid #c5e0d7;
  border-radius: 50px;
  background: white;
  font-size: 1rem;
  transition: 0.2s;
  margin-bottom: 1.2rem;
}
.input-field:focus {
  border-color: #1a7cbd;
  box-shadow: 0 0 0 4px rgba(26, 124, 189, 0.15);
  outline: none;
}
.login-btn {
  width: 100%;
  background: #1a7cbd;
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: 60px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(26, 124, 189, 0.3);
  transition: 0.15s;
  margin-top: 0.5rem;
}
.login-btn:hover {
  background: #0e5a8f;
  transform: scale(1.01);
}
.close-modal {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-size: 2rem;
  cursor: pointer;
  color: #125ba3;
  transition: 0.15s;
  background: rgba(255, 255, 255, 0.4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-modal:hover {
  background: rgba(235, 245, 255, 0.8);
  transform: rotate(90deg);
  color: #0e5a8f;
}
.error-message {
  background: #fee;
  color: #c33;
  padding: 0.8rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
  border: 1px solid #fcc;
  display: none;
}
.demo-note {
  background: #e3f0fd;
  padding: 0.9rem;
  border-radius: 40px;
  font-size: 0.9rem;
  margin-top: 2rem;
  text-align: center;
  color: #125ba3;
  border: 1px solid #b8d8f3;
}
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 750px) {
  .landing-panel {
    padding: 2rem 1.8rem;
  }
}
