/* Login Page Specific Styles */
body.login-page {
  background-color: #f5f5f5;
  margin: 0;
  padding-top: 70px; /* Ensure proper spacing below fixed nav */
}

/* Ensure cart counter is always visible on login page */
.login-page .cart-count {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Login Section */
.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.login-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 50px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-container h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.login-subtitle {
  color: #777;
  margin-bottom: 35px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form Styling */
.login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-form .form-group {
  margin-bottom: 24px;
}

.login-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
  font-size: 0.95rem;
}

.login-form .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.login-form .form-group input:focus {
  border-color: #ff6f61;
  box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
  outline: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: #ff6f61;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 14px;
  background-color: #ff6f61;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 5px;
  text-transform: none;
}

.login-btn:hover {
  background-color: #e25e50;
}

/* Divider */
.login-divider {
  position: relative;
  margin: 35px 0 25px 0;
  text-align: center;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e0e0e0;
}

.login-divider span {
  position: relative;
  background-color: white;
  padding: 0 15px;
  color: #777;
  font-size: 0.9rem;
}

/* Social Login - Single Button */
.social-login {
  display: flex;
  justify-content: center;
  margin: 20px 0 30px 0;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  min-width: 200px;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background: #f8f9fa;
}

.google-btn {
  border-color: #dadce0;
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #bdc1c6;
}

.social-btn i {
  font-size: 18px;
  color: #4285f4;
}

/* Success/Error Messages */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
  font-size: 0.9rem;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
  font-size: 0.9rem;
}

/* Sign Up Prompt */
.signup-link {
  margin-top: 25px;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
}

.signup-link a {
  color: #ff6f61;
  text-decoration: none;
  font-weight: 500;
}

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

/* Responsive */
@media (max-width: 768px) {
  .login-container {
    padding: 40px 30px;
    margin: 20px;
  }
  
  .login-container h1 {
    font-size: 1.8rem;
  }
  
  .social-btn {
    min-width: 180px;
    padding: 12px 20px;
  }
}

/* Password input container */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  width: 100%;
  padding-right: 45px; /* Make room for the eye icon */
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #333;
}

.toggle-password:focus {
  outline: none;
  color: #007bff;
}

/* Make sure the eye icon is properly sized */
.toggle-password i {
  font-size: 14px;
}
