/**
 * MatillaPlant — páginas de acceso (login, recuperar / restablecer contraseña)
 */

.page-authentication .page-header,
.page-registration .page-header,
.page-password .page-header {
  display: none;
}

.page-authentication .page-content--general,
.page-registration .page-content--general,
.page-password .page-content--general {
  padding-top: clamp(2rem, 5vw, 3.25rem);
  padding-bottom: 2.5rem;
}

.page-authentication #wrapper .container,
.page-authentication #wrapper .columns-container.container,
.page-registration #wrapper .container,
.page-registration #wrapper .columns-container.container,
.page-password #wrapper .container,
.page-password #wrapper .columns-container.container {
  max-width: min(640px, calc(100vw - 2rem));
}

.mp-auth-page {
  max-width: 100%;
  margin: 0 auto;
}

.mp-auth-page__card {
  border: 2px solid var(--ink, #101010);
  background: var(--white, #fff);
  overflow: hidden;
}

.mp-auth-page__head {
  padding: 1.75rem 1.5rem 1.35rem;
  background: var(--concrete, #F3F3EF);
  border-bottom: 2px solid var(--ink, #101010);
}

.mp-auth-page__eyebrow {
  margin: 0 0 0.65rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-dark, #7C9A32);
}

.mp-auth-page__title {
  margin: 0 0 0.75rem;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink, #101010);
}

.mp-auth-page__lead {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #3d3d3a;
}

.mp-auth-page__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.mp-auth-page__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mp-auth-page__field {
  margin-bottom: 1rem;
}

.mp-auth-page__field:last-of-type {
  margin-bottom: 0;
}

.mp-auth-page__label,
.mp-auth-page__form .form-label {
  display: block;
}

.mp-auth-page__form .mb-3 {
  margin-bottom: 1rem;
}

.mp-auth-page__form .mb-3:last-of-type {
  margin-bottom: 0;
}

.mp-auth-page__hint {
  margin: 0 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #3d3d3a;
}

.mp-auth-page__forgot-wrap {
  margin: 0.35rem 0 0;
  text-align: right;
}

.page-authentication .page-content a.mp-auth-page__forgot,
.page-registration .page-content a.mp-auth-page__forgot,
.page-password .page-content a.mp-auth-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: #8a8a83 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}

.page-authentication .page-content a.mp-auth-page__forgot:hover,
.page-authentication .page-content a.mp-auth-page__forgot:focus-visible,
.page-registration .page-content a.mp-auth-page__forgot:hover,
.page-registration .page-content a.mp-auth-page__forgot:focus-visible,
.page-password .page-content a.mp-auth-page__back:hover,
.page-password .page-content a.mp-auth-page__back:focus-visible {
  color: var(--ink, #101010) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--ink, #101010) !important;
  text-underline-offset: 3px;
}

.mp-auth-page__actions {
  margin-top: 1.25rem;
}

/* CTA — sin clases Bootstrap para evitar conflictos con custom.css */
.page-authentication .mp-auth-page__submit,
.page-registration .mp-auth-page__submit,
.page-password .mp-auth-page__submit {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 13px 18px;
  border: 2px solid var(--ink, #101010);
  border-radius: 0;
  background: var(--lime, #A0C542);
  color: var(--ink, #101010);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.page-authentication .mp-auth-page__submit:hover,
.page-authentication .mp-auth-page__submit:focus-visible,
.page-registration .mp-auth-page__submit:hover,
.page-registration .mp-auth-page__submit:focus-visible,
.page-password .mp-auth-page__submit:hover,
.page-password .mp-auth-page__submit:focus-visible {
  background: var(--lime-dark, #7C9A32);
  color: var(--ink, #101010);
  outline: none;
}

.page-authentication .mp-auth-page__submit:active,
.page-registration .mp-auth-page__submit:active,
.page-password .mp-auth-page__submit:active {
  transform: translateY(1px);
}

.mp-auth-page__foot {
  padding: 0.95rem 1.5rem 1.15rem;
  border-top: 1px solid var(--line, #E2E2DC);
  text-align: center;
  background: var(--white, #fff);
}

.mp-auth-page__register {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #3d3d3a;
}

.page-authentication .page-content a.mp-auth-page__register-link,
.page-registration .page-content a.mp-auth-page__register-link {
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--ink, #101010);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-authentication .page-content a.mp-auth-page__register-link:hover,
.page-authentication .page-content a.mp-auth-page__register-link:focus-visible,
.page-registration .page-content a.mp-auth-page__register-link:hover,
.page-registration .page-content a.mp-auth-page__register-link:focus-visible {
  color: var(--lime-dark, #7C9A32);
}

.mp-auth-page__back-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Alertas */
.mp-auth-page .alert,
.mp-auth-page .help-block,
.mp-auth-page .invalid-feedback {
  margin-bottom: 1rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.mp-auth-page .alert {
  border-width: 1px;
}

.mp-auth-page .alert-danger {
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.06);
  color: var(--ink, #101010);
}

.mp-auth-page .alert-success {
  border-color: rgba(124, 154, 50, 0.45);
  background: rgba(160, 197, 66, 0.14);
  color: var(--ink, #101010);
}

/* Campos contraseña — sin toggle ojo */
.page-authentication .mp-auth-page .password-field [data-ps-action='toggle-password'],
.page-authentication .mp-auth-page .password-field [data-action='show-password'],
.page-registration .mp-auth-page .password-field [data-ps-action='toggle-password'],
.page-registration .mp-auth-page .password-field [data-action='show-password'],
.page-password .mp-auth-page .password-field [data-ps-action='toggle-password'] {
  display: none !important;
}

.page-authentication .mp-auth-page .password-field,
.page-registration .mp-auth-page .password-field,
.page-password .mp-auth-page .password-field {
  display: block;
}

.page-authentication .mp-auth-page .password-field .form-control,
.page-authentication .mp-auth-page .password-field .mp-auth-page__input,
.page-registration .mp-auth-page .password-field .form-control,
.page-registration .mp-auth-page .password-field .mp-auth-page__input,
.page-password .mp-auth-page .password-field .form-control,
.page-password .mp-auth-page .password-field .mp-auth-page__input {
  width: 100%;
  border-right: none !important;
}

.page-authentication .page-footer:empty,
.page-registration .page-footer:empty,
.page-password .page-footer:empty {
  display: none;
}

@media (max-width: 480px) {
  .mp-auth-page__head,
  .mp-auth-page__body,
  .mp-auth-page__foot {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}
