* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wrapper {
  width: 100%;
  max-width: 400px;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2980b9, #3498db);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2980b9, #3498db);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.login-icon i {
  font-size: 2rem;
  color: white;
}

.title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
  font-weight: 300;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #2980b9;
  font-size: 1.1rem;
  z-index: 2;
}

.form-input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
  color: #333;
}

.form-input:focus {
  outline: none;
  border-color: #2980b9;
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
  color: #999;
  font-weight: 300;
}

.login-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #2980b9, #3498db);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

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

.login-button.loading {
  pointer-events: none;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

.login-button.loading .spinner {
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.demo-info {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

.demo-info h4 {
  color: #2980b9;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-info p {
  color: #666;
  font-size: 0.8rem;
  margin: 2px 0;
}

.forgot-password {
  text-align: center;
  margin-top: 20px;
}

.forgot-password a {
  color: #2980b9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #3498db;
}

@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
    margin: 10px;
  }

  .title {
    font-size: 1.7rem;
  }

  .login-icon {
    width: 60px;
    height: 60px;
  }

  .login-icon i {
    font-size: 1.5rem;
  }
}

.login-container {
  animation: slideUp 0.6s ease-out;
}

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

.input-group {
  animation: fadeInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.input-group:nth-child(1) {
  animation-delay: 0.1s;
}
.input-group:nth-child(2) {
  animation-delay: 0.2s;
}
.login-button {
  animation: fadeInLeft 0.6s ease-out 0.3s forwards;
  opacity: 0;
}
.demo-info {
  animation: fadeInLeft 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
