/* Auth Modal Styles */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

input:-webkit-autofill {
  box-shadow: 0 0 0 1000px #fffffff6 inset !important;
  -webkit-text-fill-color: inherit !important;
}

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

.auth-modal .modal-content {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.auth-modal .close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.auth-modal .close:hover,
.auth-modal .close:focus {
  color: #333;
}

.auth-modal h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #330099, rgba(102, 15, 241, 0.774));
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
}

.auth-modal form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-modal input[type="email"],
.auth-modal input[type="password"],
.auth-modal input[type="text"] {
  padding: 0.85rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.auth-modal input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-modal button[type="submit"] {
  background: linear-gradient(135deg, #330099, rgba(102, 15, 241, 0.774));
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.auth-modal button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.auth-modal button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

.auth-modal button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Google Sign-In Button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: white;
  color: #333;
  border: 1.5px solid #e0e0e0;
  padding: 0.85rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
}

.google-btn:hover {
  background-color: #f8f8f8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-btn img {
  width: 20px;
  height: 20px;
}

/* Divider */
.auth-modal .divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: #999;
  font-size: 0.9rem;
}

.auth-modal .divider::before,
.auth-modal .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.auth-modal .divider::before {
  margin-right: 1rem;
}

.auth-modal .divider::after {
  margin-left: 1rem;
}

/* Footer Links */
.auth-modal p {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.95rem;
}

.auth-modal p a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.auth-modal p a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* reCAPTCHA Container */
.g-recaptcha {
  margin: 0.5rem 0;
  display: flex;
  justify-content: center;
}

/* User Dropdown */
.user-dropdown {
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown button:hover {
  background-color: #f5f5f5 !important;
}

/* Responsive */
@media (max-width: 600px) {
  .auth-modal .modal-content {
    padding: 2rem;
    width: 95%;
  }

  .auth-modal h2 {
    font-size: 1.5rem;
  }
}
