.containers {
  text-align: center;
  color: #6a1b9a;
}

.title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 16px;
  margin-top: -30px;
  color: #4a148c;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 1s ease-in-out;
}

.login-box {
  position: relative;
  background: linear-gradient(135deg, #6a1b9a, #9c27b0, #d4b5f7);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  width: 350px;
  animation: slideUp 1.2s ease-in-out;
  overflow: hidden;
  margin: 0 auto;
}

.login-box::before,
.login-box::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: floating 5s infinite ease-in-out alternate;
}

.login-box::before {
  width: 120px;
  height: 120px;
  top: -50px;
  left: -50px;
}

.login-box::after {
  width: 180px;
  height: 180px;
  bottom: -80px;
  right: -80px;
}

@keyframes floating {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

.avatar {
  margin: 0px 0px 15px 0px;
  animation: bounceIn 1s ease-in-out;
}

.avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.login-header {
  color: white;
  font-size: 26px;
  font-weight: bold;
  margin: -6px 0px 20px 0px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.5s ease-in-out;
}

.user-box {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
}

.user-box input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  outline: none;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-size: 16px;
}

.user-box input:focus {
  border-color: #ffcccb;
  box-shadow: 0 4px 15px rgba(255, 204, 204, 0.6);
}

/* ✅ Placeholder Styling */
.user-box input::placeholder,
.user-box input::-webkit-input-placeholder,
.user-box input::-moz-placeholder,
.user-box input:-ms-input-placeholder,
.user-box input:-moz-placeholder {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.checkbox-forgot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-container {
  color: white;
  margin: 10px 0;
  animation: fadeIn 2s ease-in-out;
  width: auto;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.checkbox-container input {
  margin-right: 5px;
}

.forgot-password {
  text-align: right;
  margin: 10px 0;
  font-size: 14px;
}

.forgot-password a {
  color: #ffcccb;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password a:hover {
  text-decoration: underline;
  color: #fff;
}

.login-button {
  background-color: #ffffff;
  color: #6a1b9a;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 5px;
  border-radius: 25px;
  transition: 0.4s ease;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1.8s ease-in-out;
  width: 100%;
}

.login-button:hover {
  background-color: #ffcccb;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(255, 99, 71, 0.5);
  transform: scale(1.05);
}

.signup-link {
  color: white;
  margin-top: 15px;
  font-size: 14px;
  animation: fadeInUp 2s ease-in-out;
}

.signup-link a {
  color: #ffcccb;
  text-decoration: none;
  transition: color 0.3s;
}

.signup-link a:hover {
  text-decoration: underline;
  color: #fff;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* ✅ Responsive Styles */
@media (max-width: 768px) {
  .login-box {
    width: 350px;
    padding: 30px 20px;
  }

  .title {
    font-size: 28px;
  }

  .login-header {
    font-size: 22px;
  }

  .user-box input {
    font-size: 15px;
    padding: 10px 14px;
  }

  .login-button {
    font-size: 15px;
    padding: 10px 25px;
  }

  .checkbox-forgot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 375px) {
  .login-box {
    padding: 25px 15px;
    width: 280px;
  }

  .title {
    font-size: 24px;
  }

  .login-header {
    font-size: 20px;
  }

  .user-box input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .login-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}

@media (max-width: 320px) {
  .login-box {
    padding: 25px 15px;
    width: 250px;
  }

  .title {
    font-size: 24px;
  }

  .login-header {
    font-size: 20px;
  }

  .user-box input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .login-button {
    font-size: 14px;
    padding: 10px 20px;
  }
}
