/* Font override */
.psp-modal,
.psp-modal input,
.psp-modal button,
.psp-modal label,
.psp-modal p {
  font-family: 'Inter', 'Poppins', sans-serif;
}

/* Apply Inter everywhere in the modal */
.psp-modal,
.psp-modal * {
  font-family: 'Inter', sans-serif !important;
}

/* Overlay */
.psp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.psp-modal-overlay.hidden {
  display: none !important;
}

.hidden {
  display: none !important;
}

/* Modal */
.psp-modal {
  background: white;
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  max-width: 460px;
  width: 92%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Icon/illustration */
.psp-modal-icon {
  text-align: center;
  margin-bottom: 10px;
}

.psp-modal-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0.9;
}

/* Subtitle */
.psp-modal-subtitle {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 20px;
}
/* Close */
.psp-close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

/* Title */
.psp-modal h2 {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 10px;
}

/* Switch text */
.psp-switch-form {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 30px;
}

.psp-switch-form p {
  font-size: 14px;
  color: #555;
}

.psp-switch-form a {
  color: #0055ff;
  font-weight: 500;
  text-decoration: none;
}

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

/* Forms */
.psp-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 25px;
}

.psp-login-form label {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

/* Inputs with icon */
.psp-login-form input {
  padding: 13px 15px 13px 45px;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 600;
  position: relative;
}

/* Add icon on the left (via pseudo-element if no HTML) */
.psp-login-form input[type="email"] {
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M12 12.713l11.985-8.713-23.97 0zM12 13.927l-12-8.727v13.8c0 1.105.895 2 2 2h20c1.105 0 2-0.895 2-2v-13.8l-12 8.727z"/></svg>');
  background-repeat: no-repeat;
  background-position: 15px center;
  border-radius:12px;
  background-size: 18px;
}

.psp-login-form input[type="password"] {
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M12 17a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm6-10h-1V5a5 5 0 0 0-10 0v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM9 5a3 3 0 0 1 6 0v2H9V5z"/></svg>');
  background-repeat: no-repeat;
  background-position: 15px center;
  border-radius:12px;
  background-size: 18px;
}

.psp-login-form input:focus {
  outline: none;
  border-color: #0055ff;
  box-shadow: 0 0 0 1px #0055ff33;
}

.psp-login-form button {
  background-color: #0055ff;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.psp-login-form button:hover {
  background-color: #0041c9;
}
/* Errors */
.psp-login-error,
.psp-register-error {
  background: #ffe5e5;
  color: #c00;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}
