@import url("global.css");

.login-container {
  display: flex;
  align-items: stretch;
  height: 100vh;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.left-panel {
  flex: 1.1;
  position: relative;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem;
  background: linear-gradient(135deg, #0a1930, #1e2a78, #2bbfd0);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  will-change: transform, opacity;
  animation-name: floatDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes floatDrift {
  0% {
    transform: translateY(0) translateX(0) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  50% {
    transform: translateY(-300%) translateX(50px) scale(1);
    opacity: 0.7;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-600%) translateX(-25px) scale(1.1);
    opacity: 0;
  }
}

.left-panel img {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.left-panel h1 {
  font-weight: 600;
  font-size: 1.9rem;
  margin-bottom: 1rem;
  z-index: 1;
}

.left-panel p {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 360px;
  z-index: 1;
}

footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  z-index: 1;
}

.right-panel {
  flex: 1;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 3rem 3.5rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: fadeInUp 0.7s ease forwards;
}

.login-card h2 {
  color: #0a1930;
  margin-bottom: 0.3rem;
  font-size: 1.7rem;
  font-weight: 600;
}

.login-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

button {
  background-color: var(--color-brand-secondary-teal);
  color: var(--color-neutral-100);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

button:hover {
  background-color: var(--color-brand-secondary-teal-dark);
  transform: translateY(-1px);
}

.err {
  margin-top: 1rem;
  color: #b00020;
  font-size: 0.9rem;
  display: none;
}

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

@media (max-width: 900px) {
  .login-container { flex-direction: column; }
  .left-panel { flex: none; height: 40vh; }
  .right-panel { height: 60vh; }
  .login-card { box-shadow: none; padding: 2rem; }
}
