/* PFX Auth Plugin Styles */
.auth-page .banner {
  display: none;
}
.pfx-auth-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.pfx-auth-wrapper {
  display: flex;
  min-height: 600px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.pfx-auth-form-section {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 50%;
}

.pfx-auth-image-section {
  flex: 1;
  position: relative;
  min-height: 700px;
}

.pfx-auth-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  position: sticky;
  top: 20px;
}

.pfx-auth-header h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #000000;
}

.pfx-auth-subtitle {
  color: #000000;
  font-size: 14px;
  margin: 0 0 30px 0;
  font-style: italic;
  opacity: 0.5;
}

.pfx-google-auth {
  margin-bottom: 20px;
}

.pfx-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  gap: 10px;
}

.pfx-google-btn:hover {
  border-color: #4285f4;
  background: #ffffff;
  text-decoration: none;
  color: #4285f4;
}

.pfx-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
  color: #95a5a6;
  font-size: 12px;
}

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

.pfx-divider span {
  background: white;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.pfx-form-group {
  margin-bottom: 8px;
}

.pfx-form-group label {
  display: block;
  color: #000000;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.pfx-form-group input[type="text"],
.pfx-form-group input[type="email"],
.pfx-form-group input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.pfx-form-group input:focus {
  outline: none;
  border-color: #62358c;
}

.pfx-checkbox-group {
  margin: 25px 0;
}

.pfx-checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.pfx-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #62358c;
}

.pfx-checkbox-item label {
  margin: 0;
  font-size: 14px;
  color: #000000;
  cursor: pointer;
}

.pfx-optional-note {
  font-size: 12px;
  color: #7f8c8d;
  margin: 5px 0 0 0;
  font-style: italic;
}

.pfx-privacy-group {
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
  margin-top: 25px;
}

.pfx-form-options {
  text-align: right;
  margin-bottom: 25px;
}

.pfx-forgot-password {
  color: #62358c;
  font-size: 13px;
  text-decoration: none;
}

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

.pfx-submit-btn {
  width: 100%;
  padding: 15px;
  background: #62358c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 20px;
}

.pfx-submit-btn:hover {
  background: #4e2a70;
}

.pfx-switch-form {
  text-align: center;
  font-size: 14px;
  color: #7f8c8d;
}

.pfx-switch-form a {
  color: #62358c;
  text-decoration: none;
  font-weight: 500;
}

.pfx-switch-form a:hover {
  text-decoration: underline;
}

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

.pfx-error-message p {
  margin: 0;
}

.pfx-success-message {
  background: #d1edff;
  color: #155724;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid #bee5eb;
}

.pfx-success-message p {
  margin: 0;
}

/* Password Toggle Styles */
.pfx-password-wrapper {
  position: relative;
}

.pfx-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #666;
  transition: all 0.2s ease;
  font-size: 16px;
  line-height: 1;
  z-index: 5;
}

.pfx-password-toggle:hover {
  color: #62358c;
  background: rgba(98, 53, 140, 0.1);
}

.pfx-password-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(98, 53, 140, 0.2);
}

.pfx-form-group.has-password-toggle input[type="password"],
.pfx-form-group.has-password-toggle input[type="text"] {
  padding-right: 45px;
}

/* Enhanced form focus effects */
.pfx-form-group.focused input {
  border-color: #62358c;
  box-shadow: 0 0 0 2px rgba(98, 53, 140, 0.1);
}

.pfx-form-group input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.pfx-checkbox-item.error label {
  color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pfx-auth-wrapper {
    flex-direction: column;
    border-radius: 15px;
  }

  .pfx-auth-form-section {
    max-width: none;
    padding: 30px 20px;
  }

  .pfx-auth-image-section {
    min-height: 300px;
    order: -1;
  }

  .pfx-auth-image {
    position: static; /* Retire le sticky sur mobile */
    border-radius: 15px 15px 0 0;
  }

  .pfx-auth-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .pfx-auth-container {
    padding: 10px;
  }

  .pfx-auth-form-section {
    padding: 20px 15px;
  }
}
