/* Login Page Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../../image/yourname.28e7a1e15b04.gif") center/cover no-repeat fixed;
}

.login-container {
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.login-card {
  width: 100%;
  max-width: 450px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.8s ease-out;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #ff9800, #ff5722);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.brand {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  color: #ff9800;
  margin-bottom: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
  color: #ff5722;
}

.login-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.login-header p {
  color: #666;
  font-size: 14px;
}

.messages {
  margin-bottom: 20px;
}

.error-message {
  background-color: #fff3f3;
  border-left: 4px solid #ff5252;
  color: #ff5252;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.error-message i {
  margin-right: 10px;
  font-size: 16px;
}

.login-form {
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ff9800;
  font-size: 18px;
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 1px solid #e1e1e1;
  border-radius: 50px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.input-group input:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
  background-color: #fff;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
  color: #666;
  cursor: pointer;
}

.remember-me input {
  margin-right: 8px;
  accent-color: #ff9800;
}

.forgot-password {
  color: #ff9800;
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: #ff5722;
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.login-button span {
  margin-right: 10px;
}

.login-button i {
  transition: transform 0.3s ease;
}

.login-button:hover {
  background: linear-gradient(135deg, #f57c00, #e64a19);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.login-button:hover i {
  transform: translateX(5px);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.or-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.or-divider::before,
.or-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #e1e1e1;
}

.or-divider::before {
  left: 0;
}

.or-divider::after {
  right: 0;
}

.or-divider span {
  display: inline-block;
  padding: 0 15px;
  background-color: #fff;
  position: relative;
  color: #999;
  font-size: 14px;
}

.social-login {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-login button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: buttonFadeIn 0.5s ease-out;
}

.social-login button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.social-login button:hover::before {
  left: 100%;
}

.google-btn {
  background: #fff;
  color: #333;
  border: 1px solid #ddd !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.facebook-btn {
  background: #1877f2;
  color: white;
  box-shadow: 0 2px 5px rgba(24, 119, 242, 0.2);
}

.facebook-btn:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-login button i {
  margin-right: 10px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.social-login button:hover i {
  transform: scale(1.2);
}

.social-login button:active {
  transform: scale(0.95);
}

.social-login button span {
  position: relative;
  z-index: 1;
}

.social-login button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.social-login button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.register-link {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.register-link a {
  color: #ff9800;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.register-link a:hover {
  color: #ff5722;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .login-card {
    max-width: 90%;
    padding: 30px 20px;
  }
  
  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .social-login {
    flex-direction: column;
  }
}

/* Animation for background glow */
@keyframes backgroundGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes buttonFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


