/* =====================================
   RECUPERACIÓN DE CONTRASEÑA
===================================== */

.recovery-body {
  min-height: 100vh;
  background: #f3f8f6;
}

.hidden {
  display: none !important;
}

.header-login-active {
  position: relative;
  color: #083d39;
  font-weight: 800;
  box-shadow: inset 0 -3px #efb526;
}

.mobile-account-link {
  display: none !important;
}


/* =====================================
   FONDO GENERAL
===================================== */

.recovery-page {
  min-height: calc(100vh - 82px);
  padding: 42px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(20, 104, 92, 0.09),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(239, 181, 38, 0.10),
      transparent 24%
    ),
    #f3f8f6;
}


/* =====================================
   TARJETA PRINCIPAL
===================================== */

.recovery-layout {
  width: min(1280px, 100%);
  min-height: 650px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid #dce5e2;
  border-radius: 22px;

  box-shadow:
    0 25px 70px rgba(8, 61, 57, 0.14);
}


/* =====================================
   PANEL IZQUIERDO
===================================== */

.recovery-visual {
  position: relative;
  min-height: 650px;
  padding: 62px;

  display: flex;
  align-items: center;

  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      rgba(3, 45, 42, 0.95),
      rgba(5, 68, 61, 0.75)
    ),
    url("../../images/parque-municipal.jpeg")
    center / cover no-repeat;
}

.recovery-visual::after {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0.18;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.45) 0 1px,
      transparent 1.5px
    );

  background-size: 25px 25px;

  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent,
      black
    );

  mask-image:
    linear-gradient(
      90deg,
      transparent,
      black
    );
}

.recovery-visual-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
}

.recovery-kicker {
  margin: 0 0 20px;

  display: flex;
  align-items: center;
  gap: 11px;

  color: #f4c650;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recovery-kicker span {
  width: 30px;
  height: 2px;

  display: block;

  background: #efb526;
}

.recovery-visual h1 {
  margin: 0;

  font-size: clamp(48px, 5vw, 65px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.recovery-description {
  max-width: 390px;
  margin: 22px 0 25px;

  color: rgba(255, 255, 255, 0.88);

  font-size: 18px;
  line-height: 1.6;
}

.recovery-description::after {
  content: "";

  width: 55px;
  height: 2px;
  margin-top: 20px;

  display: block;

  background: #efb526;
}


/* =====================================
   INDICADOR DE PASOS
===================================== */

.recovery-progress {
  margin: 0;
  padding: 0;

  display: grid;
  gap: 8px;

  list-style: none;
}

.progress-item {
  position: relative;

  min-height: 67px;

  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 16px;

  color: rgba(255, 255, 255, 0.76);
}

.progress-item:not(:last-child)::after {
  content: "";

  position: absolute;

  left: 25px;
  top: 53px;

  height: 30px;

  border-left: 1px dashed #efb526;
}

.progress-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  color: #ffffff;
  background: rgba(5, 68, 61, 0.35);

  border: 2px solid #efb526;
  border-radius: 50%;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.progress-icon i {
  font-size: 19px;
}

.progress-item strong {
  font-size: 14px;
  line-height: 1.4;
}

.progress-item.current {
  color: #ffffff;
}

.progress-item.current .progress-icon {
  color: #083d39;
  background: #efb526;
}

.progress-item.completed {
  color: rgba(255, 255, 255, 0.92);
}

.progress-item.completed .progress-icon {
  color: #083d39;
  background: #e8f3ef;
  border-color: #e8f3ef;
}


/* =====================================
   PANEL DERECHO
===================================== */

.recovery-form-panel {
  min-width: 0;
  padding: 45px 55px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.recovery-card {
  width: min(100%, 570px);
}


/* =====================================
   ENCABEZADO DEL PASO
===================================== */

.recovery-heading {
  margin-bottom: 27px;
  text-align: center;
}

.recovery-main-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;

  display: grid;
  place-items: center;

  color: #083d39;
  background: #e8f3ef;

  border-radius: 50%;
}

.recovery-main-icon i {
  font-size: 31px;
}

.recovery-section-label {
  margin: 0 0 8px;

  color: #d99a08;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.recovery-heading h2,
.recovery-success h2 {
  margin: 0 0 10px;

  color: #102b2a;

  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.recovery-heading > p:last-child,
.recovery-success > p {
  max-width: 520px;
  margin: 0 auto;

  color: #60706f;

  font-size: 14px;
  line-height: 1.6;
}


/* =====================================
   FORMULARIOS Y CAMPOS
===================================== */

.recovery-form {
  display: grid;
  gap: 18px;
}

.recovery-field label {
  display: block;
  margin-bottom: 7px;

  color: #173331;

  font-size: 13px;
  font-weight: 800;
}

.recovery-input {
  min-height: 52px;

  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid #cbd8d5;
  border-radius: 10px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.recovery-input:focus-within {
  border-color: #14685c;

  box-shadow:
    0 0 0 4px rgba(20, 104, 92, 0.12);
}

.recovery-input-icon {
  height: 100%;

  display: grid;
  place-items: center;

  color: #0c514a;
  background: #edf5f2;

  border-right: 1px solid #dce5e2;
}

.recovery-input-icon i {
  font-size: 16px;
}

.recovery-input input {
  width: 100%;
  height: 50px;
  min-width: 0;
  padding: 0 14px;

  color: #102b2a;
  background: transparent;

  border: 0;
  outline: 0;

  font-size: 14px;
}

.recovery-input input::placeholder {
  color: #899794;
}

.code-input-container input {
  text-align: center;

  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.25em;
}


/* =====================================
   AYUDAS Y ERRORES
===================================== */

.recovery-help {
  display: block;
  margin-top: 6px;

  color: #71817f !important;

  font-size: 10.5px !important;
  line-height: 1.4;
}

.recovery-error {
  display: none !important;
  margin-top: 6px;

  color: #d92d20 !important;

  font-size: 11px !important;
  font-weight: 600;
  line-height: 1.4;
}

.recovery-error.is-visible {
  display: block !important;
}

.recovery-input.has-error {
  border-color: #d92d20 !important;

  box-shadow:
    0 0 0 3px rgba(217, 45, 32, 0.10) !important;
}

.recovery-input.has-error .recovery-input-icon {
  color: #d92d20;
  background: #fff1f0;
}


/* =====================================
   NOTA DE PRIVACIDAD
===================================== */

.privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;

  color: #60706f;

  font-size: 11px;
  line-height: 1.4;
}

.privacy-note i {
  color: #0c514a;
}


/* =====================================
   BOTONES
===================================== */

.recovery-submit {
  width: 100%;
}

.back-login-link,
.previous-step-button,
.resend-code-button {
  width: fit-content;
  margin: 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #0c514a;
  background: transparent;

  border: 0;

  font-size: 12px;
  font-weight: 800;
}

.back-login-link {
  margin-top: 20px;
  display: flex;
}

.back-login-link:hover,
.previous-step-button:hover,
.resend-code-button:hover {
  text-decoration: underline;
}

.resend-message {
  margin: -8px 0 0;

  color: #21866f;

  font-size: 11px;
  font-weight: 700;
  text-align: center;
}


/* =====================================
   OPCIONES DE RECUPERACIÓN
===================================== */

.recovery-options {
  display: grid;
  gap: 12px;
}

.recovery-option {
  position: relative;

  min-height: 78px;
  padding: 13px 16px;

  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 15px;

  background: #ffffff;
  border: 1px solid #cbd8d5;
  border-radius: 11px;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.recovery-option:hover {
  border-color: #8fb1aa;
}

.recovery-option.selected {
  background: #f7fbf9;
  border-color: #21866f;

  box-shadow:
    0 0 0 3px rgba(33, 134, 111, 0.08);
}

.recovery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  color: #0c514a;
  background: #e8f3ef;

  border-radius: 50%;
}

.option-icon i {
  font-size: 18px;
}

.option-content strong,
.option-content small {
  display: block;
}

.option-content strong {
  margin-bottom: 4px;

  color: #173331;

  font-size: 14px;
}

.option-content small {
  color: #60706f;
  font-size: 12px;
}

.option-check {
  width: 22px;
  height: 22px;

  display: grid;
  place-items: center;

  color: transparent;
  background: #ffffff;

  border: 1px solid #aabbb8;
  border-radius: 50%;

  font-size: 11px;
}

.recovery-option.selected .option-check {
  color: #ffffff;
  background: #21866f;
  border-color: #21866f;
}

.channel-error {
  text-align: center;
}


/* =====================================
   SIN ACCESO
===================================== */

.no-access-box {
  margin-top: 24px;
  padding: 16px;

  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 12px;

  color: #34514e;
  background: #edf5f2;

  border: 1px solid #d7e7e1;
  border-radius: 11px;
}

.no-access-box > span {
  width: 35px;
  height: 35px;

  display: grid;
  place-items: center;

  color: #0c514a;
  background: #ffffff;

  border-radius: 50%;
}

.no-access-box strong {
  display: block;
  margin-bottom: 5px;

  color: #173331;

  font-size: 12px;
}

.no-access-box p {
  margin: 0 0 8px;

  color: #60706f;

  font-size: 10.5px;
  line-height: 1.5;
}

.no-access-box a {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: #0c514a;

  font-size: 11px;
  font-weight: 800;
}


/* =====================================
   CONTRASEÑAS
===================================== */

.password-toggle {
  width: 48px;
  height: 50px;

  display: grid;
  place-items: center;

  color: #0c514a;
  background: transparent;

  border: 0;

  font-size: 16px;
}

.password-toggle:hover {
  background: #f1f7f5;
}

#newPassword::-ms-reveal,
#newPassword::-ms-clear,
#confirmNewPassword::-ms-reveal,
#confirmNewPassword::-ms-clear {
  display: none;
}


/* =====================================
   MENSAJE DE SEGURIDAD
===================================== */

.recovery-security {
  margin-top: 23px;
  padding: 13px 15px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  color: #27524d;
  background: #eaf5f1;

  border: 1px solid #d8ebe4;
  border-radius: 10px;
}

.recovery-security > span {
  width: 35px;
  height: 35px;

  flex: 0 0 35px;

  display: grid;
  place-items: center;

  color: #14685c;
  background: #ffffff;

  border-radius: 50%;
}

.recovery-security strong,
.recovery-security small {
  display: block;
}

.recovery-security strong {
  margin-bottom: 2px;
  font-size: 11px;
}

.recovery-security small {
  color: #607875;

  font-size: 9.5px;
  line-height: 1.4;
}


/* =====================================
   RESULTADO FINAL
===================================== */

.recovery-success {
  padding: 35px 0;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;

  display: grid;
  place-items: center;

  color: #ffffff;
  background: #21866f;

  border-radius: 50%;

  box-shadow:
    0 14px 30px rgba(33, 134, 111, 0.22);
}

.success-icon i {
  font-size: 31px;
}

.recovery-success > p {
  margin-bottom: 25px;
}


/* =====================================
   PIE DE PÁGINA
===================================== */

.recovery-footer {
  margin-top: 0;
}


/* =====================================
   TABLETAS
===================================== */

@media (max-width: 860px) {
  .mobile-account-link {
    display: flex !important;
  }

  .recovery-page {
    min-height: auto;
    padding: 28px 16px;
  }

  .recovery-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .recovery-visual {
    min-height: 360px;
    padding: 40px;
  }

  .recovery-visual h1 {
    font-size: 46px;
  }

  .recovery-description {
    margin-bottom: 20px;
  }

  .recovery-progress {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .progress-item {
    min-height: auto;

    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;

    text-align: center;
  }

  .progress-item:not(:last-child)::after {
    top: 25px;
    left: calc(50% + 29px);

    width: calc(100% - 50px);
    height: 0;

    border-left: 0;
    border-top: 1px dashed #efb526;
  }

  .progress-item strong {
    font-size: 9px;
  }

  .recovery-form-panel {
    padding: 45px 38px;
  }
}


/* =====================================
   TELÉFONOS
===================================== */

@media (max-width: 560px) {
  .recovery-page {
    padding: 16px;
  }

  .recovery-layout {
    border-radius: 16px;
  }

  .recovery-visual {
    min-height: 300px;
    padding: 28px 23px;
  }

  .recovery-kicker {
    margin-bottom: 12px;
    font-size: 9px;
  }

  .recovery-visual h1 {
    font-size: 37px;
  }

  .recovery-description {
    margin: 13px 0 19px;

    font-size: 13px;
  }

  .progress-icon {
    width: 42px;
    height: 42px;
  }

  .progress-icon i {
    font-size: 15px;
  }

  .progress-item:not(:last-child)::after {
    top: 21px;
    left: calc(50% + 24px);

    width: calc(100% - 40px);
  }

  .progress-item strong {
    font-size: 8px;
  }

  .recovery-form-panel {
    padding: 34px 20px;
  }

  .recovery-main-icon {
    width: 65px;
    height: 65px;
  }

  .recovery-main-icon i {
    font-size: 26px;
  }

  .recovery-heading h2 {
    font-size: 29px;
  }

  .recovery-heading > p:last-child {
    font-size: 12px;
  }

  .recovery-option {
    grid-template-columns: 42px minmax(0, 1fr) 23px;
    gap: 11px;
    padding: 12px;
  }

  .option-icon {
    width: 42px;
    height: 42px;
  }

  .option-content strong {
    font-size: 12px;
  }

  .option-content small {
    font-size: 10.5px;
  }

  .no-access-box {
    grid-template-columns: 31px 1fr;
    padding: 13px;
  }

  .recovery-security {
    align-items: flex-start;
    justify-content: flex-start;
  }
}


/* =====================================
   MENÚ ACTIVO EN TELÉFONOS
===================================== */

@media (max-width: 860px) {
  .main-nav .mobile-account-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #173331 !important;
    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
  }

  .main-nav .mobile-account-link.active {
    position: relative;

    color: #083d39 !important;
    font-weight: 800;
  }

  .main-nav .mobile-account-link.active::after {
    content: "" !important;

    position: absolute;

    display: block !important;

    left: 50% !important;
    right: auto !important;
    bottom: 2px;

    width: min(265px, 70%);
    height: 2px;

    background: #efb526;

    border-radius: 999px;

    transform: translateX(-50%);
  }
}