/* Authentication Modal Styles */

/* Navigation Auth Buttons */
.auth-btn, .auth-btn-signup {
  padding: 8px 20px !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
}

.auth-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px);
}

.auth-btn-signup {
  background: linear-gradient(135deg, #ff2e63 0%, #ff6b9d 100%) !important;
  border: 2px solid transparent !important;
}

.auth-btn-signup:hover {
  background: linear-gradient(135deg, #ff1a4d 0%, #ff5587 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 46, 99, 0.4);
}

/* Modal Overlay */
.auth-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

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

/* Modal Content */
.auth-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.4s ease;
}

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

/* Close Button */
.auth-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #636e72;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}

.auth-close:hover,
.auth-close:focus {
  color: #ff2e63;
  background: rgba(255, 46, 99, 0.1);
  transform: rotate(90deg);
}

/* Modal Title */
.auth-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: #252a34;
  margin-bottom: 10px;
  text-align: center;
  background: linear-gradient(135deg, #ff2e63 0%, #ff6b9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-modal-subtitle {
  color: #636e72;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form-group label {
  color: #252a34;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-form-group label i {
  color: #ff2e63;
}

.auth-form-group input {
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #252a34;
}

.auth-form-group input:focus {
  outline: none;
  border-color: #ff2e63;
  box-shadow: 0 0 0 4px rgba(255, 46, 99, 0.1);
}

.auth-form-group input::placeholder {
  color: #b2bec3;
}

/* Submit Button */
.auth-submit-btn {
  background: linear-gradient(135deg, #ff2e63 0%, #ff6b9d 100%);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #ff1a4d 0%, #ff5587 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 46, 99, 0.3);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* Switch Text */
.auth-switch-text {
  text-align: center;
  color: #636e72;
  font-size: 0.95rem;
  margin-top: 10px;
}

.auth-switch-text a {
  color: #ff2e63;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-switch-text a:hover {
  color: #ff1a4d;
  text-decoration: underline;
}

/* Message Styles */
.auth-message {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
  animation: slideIn 0.3s ease;
}

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

.auth-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.auth-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.auth-message.info {
  background: #d1ecf1;
  color: #0c5460;
  border: 2px solid #bee5eb;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .auth-modal-content {
    margin: 10% auto;
    padding: 30px 20px;
    width: 95%;
  }

  .auth-modal-title {
    font-size: 1.6rem;
  }

  .auth-modal-subtitle {
    font-size: 0.9rem;
  }

  .auth-form-group input {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .auth-submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .auth-btn, .auth-btn-signup {
    padding: 6px 15px !important;
    font-size: 0.9rem !important;
  }
}

@media screen and (max-width: 480px) {
  .auth-modal-content {
    margin: 15% auto;
    padding: 25px 15px;
  }

  .auth-modal-title {
    font-size: 1.4rem;
  }

  .auth-close {
    font-size: 28px;
    width: 35px;
    height: 35px;
  }
}

/* Loading State */
.auth-submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.auth-submit-btn.loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
