* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url("image/vngsit.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: "Prompt", sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(221, 222, 228, 0.28) 0%,
    rgba(107, 106, 109, 0.5) 100%
  );
  z-index: 0;
}

/* Animated Background Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Logo Container with Modern Animation */
.logo-container {
  position: absolute;
  top: 8vh;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
  animation: slideDown 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-wrapper {
  display: inline-block;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.logo-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.logo-container img {
  width: 280px;
  max-width: 80vw;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.logo-wrapper:hover img {
  transform: scale(1.05);
}

/* Modern Login Container with Glassmorphism */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
  z-index: 5;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 440px;
  width: 100%;
  margin-top: 180px;
  animation: slideUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #062dd6ff, #186fc0ff, #1325c5ff);
  background-size: 200% 100%;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern Title */
.login-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #002b7f 0%, #001e5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-subtitle {
  color: #003d82;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Modern Form Inputs */
.form-label {
  font-weight: 600;
  color: #002b7f;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.input-group-custom {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control:focus {
  border-color: #002b7f;
  box-shadow: 0 0 0 4px rgba(0, 43, 127, 0.15);
  background: white;
  outline: none;
}

.form-control:hover {
  border-color: #003d82;
  background: white;
}

/* Toggle Password Button */
.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: #002b7f;
}

/* Modern Button */
.btn-primary {
  background: linear-gradient(135deg, #002b7f 0%, #001e5e 100%);
  border: none;
  border-radius: 15px;
  padding: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 43, 127, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Remember Me Checkbox */
.form-check {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #002b7f;
  border-color: #002b7f;
}

.form-check-label {
  margin-left: 0.5rem;
  color: #003d82;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Message Alert */
#message {
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.9rem;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 0.85rem;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo-container {
    top: 5vh;
  }

  .logo-container img {
    width: 220px;
  }

  .login-container {
    padding: 2.5rem 1.5rem 2rem;
    margin-top: 140px;
    border-radius: 25px;
  }

  .login-title {
    font-size: 1.75rem;
  }

  .logo-wrapper {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 2rem 1.25rem 1.5rem;
    margin-top: 120px;
  }

  .login-title {
    font-size: 1.5rem;
  }

  .logo-container img {
    width: 280px;
  }
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.forgot-password a {
  color: #002b7f;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.forgot-password a:hover {
  color: #001e5e;
  text-decoration: underline;
}
