@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(
    135deg,
    rgb(183, 0, 0) 0%,
    rgb(161, 40, 40) 30%,
    rgb(139, 16, 16) 70%,
    rgb(147, 27, 27) 100%
  );
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated background elements */
.bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.floating-shapes {
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape2 {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
  width: 80px;
  height: 80px;
}

.shape3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
  width: 60px;
  height: 60px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  padding: 60px;
  width: 100%;
  max-width: 600px;
  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: 5px;
  /* background: linear-gradient(90deg, #e44343, #b60a0a, #8b0c0c); */
}

.logo-section {
  text-align: center;
  margin-bottom: 50px;
}

.logo {
  display: inline-block;
  position: relative;
  margin-bottom: 25px;
}

.logo-circle {
  width: 200px;
  height: 200px;
  background: rgb(255, 253, 253);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 15px 35px rgba(37, 38, 41, 0.4);
  transition: transform 0.3s ease;
  animation: pulse 2s infinite;
}

.logo-circle:hover {
  transform: scale(1.05);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 15px 35px rgba(74, 85, 104, 0.4);
  }
  50% {
    box-shadow: 0 20px 45px rgba(74, 85, 104, 0.5);
  }
}

.logo-text {
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.company-name {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #4a5568, #2d3748);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-title {
  font-size: 18px;
  color: #4a5568;
  margin-bottom: 40px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #2d3748;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-container {
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 20px 25px;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #2d3748;
}

.form-group input:focus {
  outline: none;
  border-color: #4a5568;
  box-shadow: 0 0 0 4px rgba(74, 85, 104, 0.2);
  transform: translateY(-3px);
  background: rgb(255, 255, 255);
}

.form-group input::placeholder {
  color: #a0aec0;
  font-weight: 300;
}

.input-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 18px;
  pointer-events: none;
}

.login-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, #686f7a 0%, #979da7 100%);
  color: white;
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(74, 85, 104, 0.4);
}

.login-btn:active {
  transform: translateY(-1px);
}

.forgot-password {
  text-align: center;
  margin-top: 30px;
}

.forgot-password a {
  color: #4a5568;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.forgot-password a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4a5568;
  transition: width 0.3s ease;
}

.forgot-password a:hover::after {
  width: 100%;
}

.success-message {
  display: none;
  background: linear-gradient(135deg, #68d391, #48bb78);
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
  animation: slideInDown 0.5s ease-out;
  box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
}

.error-message {
  display: none;
  background: linear-gradient(135deg, #fc8181, #e53e3e);
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
  animation: shake 0.5s ease-out;
  box-shadow: 0 10px 25px rgba(229, 62, 62, 0.3);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.loading {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4a5568;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Background pattern overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  z-index: -2;
}

@media (max-width: 600px) {
  .login-container {
    padding: 40px 30px;
    margin: 20px;
  }

  .logo-circle {
    width: 100px;
    height: 100px;
  }

  .logo-text {
    font-size: 42px;
  }

  .company-name {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }
}
