* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-color: #2a2f4f;
  --secondary-color: #917fb3;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  background-image: url("https://images.unsplash.com/photo-1497864149936-d3163f0c0f4b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1469&q=80");
  background-size: cover;
  background-position: center;
  animation: gradientShift 10s infinite alternate;
  position: relative;
  overflow-x: hidden;
}

/* ---------------- Scrollbar Design CSS --------------- */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--secondary-color), var(--primary-color));

  border-radius: 8px;
  border: 2px solid var(--primary-color);
}
/* ---------------------- Webkit Styles Ends ---------------------- */

/* ---------------- Prompt Styles Start --------------- */
.prompt {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 1.3rem;
  transform: translate(-50%, -50%);
  padding: 1rem 2rem;
  border-radius: 10px;
  color: white;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: fadeInOut 3s forwards;
  z-index: 10001;
}

.prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
}

.prompt i {
  margin-right: 1rem;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }

  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  90% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

.prompt--success {
  background: #28a745;
}

.prompt--warning {
  background: #ffc107;
  color: #333;
  border: 1px solid white;
}

.prompt--info {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
  color: #f8f9fa;
}

.prompt--error {
  background: #dc3545;
}
/* ---------------- Prompt Styles End --------------- */

.user-profile__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border: 2px solid #2c3e50;
  transition: all 0.3s ease;
}

.user-profile__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the space without distortion */
}

.user-profile__icon i {
  font-size: 1.5rem; /* Adjust icon size relative to container */
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Optional hover effect */
.user-profile__icon:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  margin: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  width: 400px;
  transform: translateY(0);
  animation: formEntrance 0.8s ease-out;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px);
}

.logo {
  text-align: center;
  /* margin-bottom: 25px; */
  transition: all 0.3s ease;
  animation: logoPulse 2s infinite;
}

.logo img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

h1 {
  text-align: center;
  color: #2d3436;
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-group > i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #636e72;
  transition: all 0.3s ease;
  z-index: 2;
}

.input-field {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #dfe6e9;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  z-index: 1;
}

.input-field:focus {
  outline: none;
  border-color: #74b9ff;
  box-shadow: 0 0 15px rgba(116, 185, 255, 0.3);
}

.input-label {
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  color: #636e72;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 0;
}

.input-field:focus ~ .input-label,
.input-field:valid ~ .input-label {
  top: -10px;
  left: 35px;
  font-size: 12px;
  background: white;
  padding: 0 5px;
  color: #74b9ff;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #74b9ff, #a683ff);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

.login-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s;
}

.login-btn:hover::after {
  left: 150%;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #636e72;
  z-index: 2;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@keyframes formEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0 0;
}

.login-link {
  display: block;
  text-align: center;
  margin-top: 0.8rem;
  color: #636e72;
  transition: all 0.3s ease;
}

.login-link > a,
.auth-links > a {
  text-decoration: none;
  color: #74b9ff;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.login-link > a:hover,
.auth-links > a:hover {
  text-decoration: underline;
  color: #0984e3;
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  animation: rippleEffect 0.6s linear;
}

.google-login-btn {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 2px solid #dddddd;
  border-radius: 8px;
  color: #5f6368;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.google-login-btn {
  text-decoration: none;
}

.google-login-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(45deg, #74b9ff, #a683ff);
  /* color: #fff; */
}

.button-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: #636e72;
}

.button-divider::before,
.button-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.button-divider span {
  padding: 0 1rem;
  font-size: 12px;
}

@keyframes rippleEffect {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

/* ------------------- Media Query for Login Page ----------------- */
@media (max-width: 768px) {
  .login-container {
    width: 90%;
    padding: 2rem;
  }

  .logo img {
    width: 80px;
    height: 80px;
  }

  h1 {
    font-size: 2rem;
  }

  .input-field {
    padding: 12px 12px 12px 40px;
    font-size: 14px;
  }

  .input-label {
    left: 40px;
    font-size: 14px;
  }

  .input-field:focus ~ .input-label,
  .input-field:valid ~ .input-label {
    top: -8px;
    left: 30px;
    font-size: 10px;
  }

  .login-btn {
    padding: 12px;
    font-size: 14px;
  }

  .forgot-password {
    font-size: 14px;
  }

  .google-login-btn {
    padding: 10px;
    font-size: 12px;
    gap: 8px;
  }

  .button-divider span {
    font-size: 10px;
  }
}
