/**
 * Estilos para los shortcodes de registro, login y panel de cuenta.
 * Mantiene una maquetación ligera y reutilizable.
 */
/* ---------- Elementos generales ---------- */
.bdt-panel-content {
  max-width: 1320px;
  margin: 0 auto;
}
.bdt-auth-section {
  background-color: #f5f7fb;
}
.bdt-auth-card {
  border: 0;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}
.bdt-auth-card header h2 {
  color: #0f172a;
}
.bdt-auth-card header p {
  color: #475467;
  font-size: 0.95rem;
}
/* ---------- Formularios de login y registro ---------- */
.bdt-login-form .form-control,
.bdt-registration-form .form-control,
.bdt-registration-form .form-select {
  min-height: 3rem;
  border-radius: 0.85rem;
  border-color: #d0d5dd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bdt-login-form .form-control:focus,
.bdt-registration-form .form-control:focus,
.bdt-registration-form .form-select:focus {
  border-color: var(--theme-base);
  box-shadow: none;
}
.bdt-registration-form .form-check-input {
  border-radius: 0.4rem;
}
.form-check-input:focus {
  border-color: var(--theme-base);
  box-shadow: none;
}
.bdt-login-form .btn,
.bdt-registration-form .btn {
  border-radius: 0.85rem;
  font-weight: 600;
  padding-block: 0.85rem;
}
/* ---------- Panel de "Mi cuenta" ---------- */
.bdt-mi-cuenta {
  background-color: #f8f9fc;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.bdt-panel-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e4e7ec;
  max-width: 1320px;
  margin: 0 auto;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}
.bdt-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1rem;
  color: #0f172a;
}
.bdt-btn-logout {
  font-size: 0.875rem;
  color: var(--theme-base);
  text-decoration: none;
}
.bdt-btn-logout:hover {
  color: var(--theme-blue);
}
.bdt-panel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.bdt-panel-nav a {
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  background-color: var(--theme-blue);
  border: 1px solid var(--theme-blue);
  color: var(--theme-white);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.bdt-panel-nav a.is-active,
.bdt-panel-nav a:hover {
  background-color: var(--theme-base);
  border-color: var(--theme-base);
  color: var(--theme-white);
}
/* ---------- Avisos del panel ---------- */
.bdt-panel-notices {
  margin-bottom: 1.5rem;
}
.bdt-notice {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.bdt-notice-success {
  background-color: #ecfdf3;
  color: #027a48;
}
.bdt-notice-error,
.bdt-notice-danger {
  background-color: #fef3f2;
  color: #b42318;
}
/* ---------- Contenedores internos ---------- */
.bdt-panel-box {
  background-color: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.bdt-panel-box h3 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}
/* ---------- Listado de anuncios ---------- */
.bdt-listado-anuncios {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bdt-listado-anuncios li {
  border: 1px solid #e4e7ec;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.bdt-listado-anuncios li img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}
.bdt-listado-anuncios .bdt-status {
  color: #475467;
  font-size: 0.9rem;
}
.bdt-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media screen and (max-width: 767px) {
  .bdt-actions {
    justify-content: center;
  }
}
.bdt-inline-form {
  display: inline;
}
/* ---------- Botones reutilizables ---------- */
.bdt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background-color: var(--theme-base);
  color: var(--theme-white);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bdt-btn-primary,
.bdt-btn.bdt-btn-primary {
  background-color: var(--theme-blue);
  border-color: var(--theme-blue);
  color: #fff;
}
.bdt-btn-danger,
.bdt-btn.bdt-btn-danger {
  background-color: var(--theme-blue);
  border-color: var(--theme-blue);
  color: #fff;
}
.bdt-btn:hover,
.bdt-btn:focus {
  opacity: 0.9;
}
/* ---------- Campos personalizados ---------- */
.bdt-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.bdt-field label {
  font-weight: 600;
  color: #0f172a;
}
.bdt-field input,
.bdt-field select,
.bdt-field textarea {
  border-radius: 0.85rem;
  border: 1px solid #d0d5dd;
  padding: 0.65rem 0.85rem;
}
.bdt-field input:focus,
.bdt-field select:focus,
.bdt-field textarea:focus {
  border-color: var(--theme-base);
  outline: none;
  box-shadow: 0 0 0 0.12rem rgba(13, 110, 253, 0.15);
}
.bdt-avatar {
  border-radius: 999px;
  width: 72px;
  height: 72px;
  object-fit: cover;
}
/* ---------- Responsividad ---------- */
@media (max-width: 767px) {
  .bdt-mi-cuenta {
    padding: 1.25rem;
  }
  .bdt-panel-nav {
    width: 100%;
  }
  .bdt-panel-nav a {
    flex: 1 1 auto;
    text-align: center;
  }
  .bdt-listado-anuncios li {
    flex-direction: column;
  }
}
