/* ========== LOGIN PAGE STYLE ENHANCEMENT (SCROLLABLE VERSION) ========== */
body {
  background: linear-gradient(135deg, #5a60ff 0%, #6f2dbd 100%);
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: block;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 20px;
}

.login-container {
  max-width: 420px;
  width: 100%;
  animation: fadeInUp 0.8s ease;
}

.card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, #2c3e50, #4b6584);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.card-header h3 {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.card-header small {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.card-body {
  padding: 2rem 1.8rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
}

.form-control {
  border-radius: 10px;
  padding: 12px 15px;
  border: 2px solid #eaeaea;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #6f2dbd;
  box-shadow: 0 0 0 0.2rem rgba(111, 45, 189, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #6f2dbd, #8b5cf6);
  border: none;
  padding: 12px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(111, 45, 189, 0.3);
  background: linear-gradient(135deg, #8b5cf6, #6f2dbd);
}

.captcha {
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  padding: 15px;
  text-align: center;
  letter-spacing: 10px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  user-select: none;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}

.captcha:hover {
  transform: scale(1.02);
}

.refresh-captcha {
  border: none;
  color: #6f2dbd;
  background: transparent;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.refresh-captcha:hover {
  transform: rotate(180deg);
  color: #8b5cf6;
}

.alert {
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
}

.card-footer {
  background: #fafafa;
  font-size: 0.85rem;
  color: #666;
  padding: 1rem;
  border-top: 1px solid #eee;
}

.card-footer small i {
  color: #6f2dbd;
}

.form-text {
  font-size: 0.85rem;
  color: #888;
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(111, 45, 189, 0.4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(111, 45, 189, 0.7);
}

/* Responsive adjustment */
@media (max-height: 700px) {
  .container {
    padding: 20px 10px 80px;
  }
}
