/* /app/css/account.css */
/* Light, mobile card-style account UI (like screenshot) */

.px-account-shell {
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header */
.px-account-header {
  margin-bottom: 16px;
  padding-right: 32px; /* avoid overlapping the X button */
  text-align: center;
}

.px-account-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.px-account-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* Card: white on soft pink background */
.px-account-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(209, 213, 219, 0.9);
}

/* Logged-out copy */
.px-account-card-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.px-account-card-body {
  margin: 0 0 12px;
  font-size: 13px;
  color: #6b7280;
}

/* Form */
.px-account-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.px-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.px-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

/* Rounded, light inputs like screenshot */
.px-field-input {
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  padding: 10px 12px;
  font-size: 14px;
  background: #f3f4f6;
  color: #111827;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.px-field-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
  background: #ffffff;
}

/* Primary button = big green "Guardar" style */
.px-btn-primary {
  margin-top: 18px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #84cc16; /* lime green like screenshot */
  color: #042f0f;
  box-shadow: 0 8px 18px rgba(132, 204, 22, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.px-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(132, 204, 22, 0.55);
  filter: brightness(1.03);
}

.px-btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 5px 14px rgba(132, 204, 22, 0.4);
}

/* Secondary button = flat row style (for "Cerrar sesión" etc.) */
.px-btn-secondary {
  margin-top: 8px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(229, 231, 235, 1);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #ffffff;
  color: #111827;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.px-btn-secondary:hover {
  background: #f3f4f6;
}

/* Text + links */
.px-account-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #6b7280;
}

.px-account-link {
  color: #fb923c;
  text-decoration: none;
  font-weight: 500;
}

.px-account-link:hover {
  text-decoration: underline;
}

/* Divider */
.px-account-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 6px;
}

.px-account-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(209, 213, 219, 0.2),
    rgba(209, 213, 219, 0.9),
    rgba(209, 213, 219, 0.2)
  );
}

.px-account-divider-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.px-account-coming-soon {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Logged-in layout */
.px-account-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* Avatar similar size, but light theme */
.px-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #f97316, #fb7185);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}

.px-account-greeting {
  font-size: 14px;
  font-weight: 600;
}

.px-account-email {
  font-size: 12px;
  color: #6b7280;
}

/* Sections */
.px-account-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(229, 231, 235, 1);
}

.px-account-section-header {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.px-account-pref-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
}

.px-account-pref-label {
  font-weight: 500;
}

.px-account-pref-value {
  text-align: right;
  flex: 1;
}

.px-account-favorites-hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7280;
}

/* Message area (errors & success) */
.px-account-message {
  margin: 10px 2px 0;
  font-size: 12px;
  display: none;
}

.px-account-message--error {
  color: #b91c1c;
}

.px-account-message--success {
  color: #15803d;
}

/* Danger button for delete account:
   flat row with red text like the screenshot */
.px-btn-danger {
  width: 100%;
  border-radius: 12px;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #ffffff;
  color: #dc2626;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.px-btn-danger:hover {
  background: #fee2e2;
}



/* Popup toast for account actions */
.px-account-popup {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  min-width: 240px;
  max-width: 90vw;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  backdrop-filter: blur(16px);
}

.px-account-popup--success {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.97),
    rgba(22, 163, 74, 0.97)
  );
  color: #ecfdf5;
}

.px-account-popup--error {
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.97),
    rgba(185, 28, 28, 0.97)
  );
  color: #fef2f2;
}

.px-account-popup--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.px-password-rules-list {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 0;
  font-size: 0.85rem;
}

.px-password-rules-list li {
  opacity: 0.6;
}

.px-password-rules-list li.px-password-rule--ok {
  opacity: 1;
  font-weight: 600;
}