:root {
  --guest-orange: #f59e0b;
  --guest-orange-dark: #d97706;
  --guest-orange-soft: #fff4df;
  --guest-plomo: #252a30;
  --guest-plomo-2: #343a42;
  --guest-gray-900: #222831;
  --guest-gray-700: #4b5563;
  --guest-gray-500: #7b8490;
  --guest-gray-300: #d7dde4;
  --guest-gray-200: #e8ebef;
  --guest-gray-100: #f5f6f8;
  --guest-white: #ffffff;
}

html,
body { min-width: 320px; min-height: 100%; }
body.page-login,
body[class^="page-password"] {
  margin: 0;
  overflow-x: hidden;
  background: var(--guest-gray-100);
  color: var(--guest-gray-900);
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-login .account-pages {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 94% 14%, rgba(245,158,11,.11), transparent 24%),
    radial-gradient(circle at 6% 92%, rgba(245,158,11,.14), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f3f5f7 100%);
}
.page-login .account-pages::before,
.page-login .account-pages::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-login .account-pages::before {
  width: 520px;
  height: 520px;
  right: -250px;
  bottom: -240px;
  border: 78px solid rgba(245,158,11,.26);
}
.page-login .account-pages::after {
  width: 430px;
  height: 430px;
  left: -230px;
  bottom: -250px;
  border: 60px solid rgba(245,158,11,.20);
}

.page-login .wrapper-page {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}
.page-login .topbar-guest { display: none !important; }

.ns-login {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
}
.ns-login__brand-panel,
.ns-login__form-panel {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-login__brand-panel {
  padding: 64px clamp(42px, 7vw, 112px) 82px;
  overflow: hidden;
  background: rgba(255,255,255,.88);
}
.ns-login__brand-panel::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -240px;
  width: 520px;
  height: 520px;
  border: 2px solid rgba(245,158,11,.72);
  border-radius: 50%;
}
.ns-login__brand-panel::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 13%;
  width: 100px;
  height: 100px;
  opacity: .46;
  background-image: radial-gradient(#a8afb8 1.4px, transparent 1.4px);
  background-size: 14px 14px;
}
.ns-login__brand-content {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
}
.ns-login__logo {
  width: min(100%, 470px);
  height: auto;
  margin-bottom: 58px;
  display: block;
}
.ns-login__eyebrow {
  margin-bottom: 16px;
  color: var(--guest-orange-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ns-login__brand-panel h1 {
  max-width: 610px;
  margin: 0 0 24px;
  color: var(--guest-plomo);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -.045em;
}
.ns-login__brand-panel h1 span { color: var(--guest-orange); }
.ns-login__brand-panel p {
  max-width: 600px;
  margin: 0;
  color: var(--guest-gray-700);
  font-size: 17px;
  line-height: 1.75;
}
.ns-login__features {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ns-login__feature {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--guest-gray-700);
}
.ns-login__feature > span {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid #f2dec0;
  border-radius: 50%;
  background: var(--guest-orange-soft);
  color: var(--guest-orange-dark);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.ns-login__feature strong {
  font-size: 13px;
  line-height: 1.35;
}

.ns-login__form-panel {
  padding: 54px clamp(28px, 6vw, 94px) 82px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.75), rgba(232,235,239,.82)),
    var(--guest-gray-100);
}
.ns-login__form-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(245,158,11,.08) 72% 100%),
    radial-gradient(circle at 94% 18%, rgba(37,42,48,.08), transparent 23%);
}
.ns-login-card {
  position: relative;
  z-index: 2;
  width: min(100%, 570px);
  padding: 42px 46px 34px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 26px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 26px 70px rgba(37,42,48,.16);
}
.ns-login-card__mark {
  width: 76px;
  height: 76px;
  margin: -6px auto 22px;
  border: 1px solid #f3dfbf;
  border-radius: 50%;
  background: var(--guest-orange-soft);
  color: var(--guest-orange-dark);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.ns-login-card__header { margin-bottom: 30px; text-align: center; }
.ns-login-card__header h2 {
  margin: 0 0 8px;
  color: var(--guest-plomo);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.025em;
}
.ns-login-card__header p {
  margin: 0;
  color: var(--guest-gray-500);
  font-size: 15px;
}
.ns-login-form .form-group { margin-bottom: 20px; }
.ns-login-form .control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--guest-plomo-2);
  font-size: 13px;
  font-weight: 800;
}
.ns-login-field { position: relative; }
.ns-login-field__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  transform: translateY(-50%);
  color: #9da5af;
  font-size: 15px;
  pointer-events: none;
}
.ns-login-field .form-control {
  width: 100%;
  height: 54px;
  padding: 12px 50px 12px 46px;
  border: 1px solid var(--guest-gray-300);
  border-radius: 12px;
  background: #fff;
  color: var(--guest-gray-900);
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(37,42,48,.035);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ns-login-field .form-control::placeholder { color: #a2aab4; }
.ns-login-field .form-control:focus {
  border-color: var(--guest-orange);
  box-shadow: 0 0 0 4px rgba(245,158,11,.13);
}
.ns-login-field__toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  transform: translateY(-50%);
  background: transparent;
  color: #929aa5;
  display: grid;
  place-items: center;
}
.ns-login-field__toggle:hover,
.ns-login-field__toggle:focus {
  background: var(--guest-gray-100);
  color: var(--guest-orange-dark);
}
.ns-login-form .invalid-feedback {
  display: block;
  margin-top: 7px;
  color: var(--guest-plomo);
  font-size: 12px;
}
.ns-login-form__options {
  margin: 2px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ns-login-form__options a {
  color: var(--guest-gray-700);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ns-login-form__options a:hover { color: var(--guest-orange-dark); }
.ns-login-check {
  margin: 0;
  color: var(--guest-gray-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.ns-login-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--guest-orange);
}
.ns-login-submit {
  width: 100%;
  min-height: 54px;
  padding: 12px 20px;
  border: 1px solid var(--guest-orange-dark);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffad17, #ed8c00);
  color: #252a30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(217,119,6,.20);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ns-login-submit:hover,
.ns-login-submit:focus {
  background: var(--guest-orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(217,119,6,.27);
}
.ns-login-card__security {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--guest-gray-200);
  color: var(--guest-gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}
.ns-login-card__security i { color: var(--guest-orange-dark); }
.ns-login-footer {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 18px;
  color: var(--guest-gray-500);
  font-size: 11px;
  text-align: center;
  pointer-events: none;
}

/* Recuperación y confirmación de contraseña */
body[class^="page-password"] .account-pages {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245,158,11,.18), transparent 28%),
    linear-gradient(135deg, var(--guest-plomo), #15191e);
}
body[class^="page-password"] .wrapper-page {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 28px), 480px) !important;
  min-height: 100dvh;
  height: auto;
  margin: 0 auto !important;
  padding: 40px 0;
  display: flex;
  align-items: center;
}
body[class^="page-password"] .topbar-guest { display: none; }
body[class^="page-password"] .wrapper-page > .card-box {
  width: 100%;
  padding: 30px;
  border: 1px solid var(--guest-gray-200);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
body[class^="page-password"] .form-control { min-height: 48px; border-radius: 10px; }

@media (max-width: 1100px) {
  .ns-login { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); }
  .ns-login__brand-panel { padding-inline: 46px; }
  .ns-login__brand-panel h1 { font-size: clamp(40px, 5vw, 58px); }
  .ns-login__features { grid-template-columns: 1fr; gap: 12px; }
  .ns-login__feature br { display: none; }
}

@media (max-width: 820px) {
  .ns-login {
    min-height: 100dvh;
    padding: 22px 14px 70px;
    display: block;
  }
  .ns-login__brand-panel {
    min-height: 0;
    padding: 22px 18px 30px;
    border-radius: 22px 22px 0 0;
    background: transparent;
    text-align: center;
  }
  .ns-login__brand-panel::before,
  .ns-login__brand-panel::after { display: none; }
  .ns-login__brand-content { width: min(100%, 560px); }
  .ns-login__logo { width: min(100%, 310px); margin: 0 auto 24px; }
  .ns-login__eyebrow { margin-bottom: 10px; }
  .ns-login__brand-panel h1 { margin-bottom: 12px; font-size: clamp(32px, 9vw, 46px); }
  .ns-login__brand-panel p { margin-inline: auto; font-size: 14px; line-height: 1.55; }
  .ns-login__features { display: none; }
  .ns-login__form-panel { min-height: 0; padding: 0; background: transparent; }
  .ns-login__form-panel::before { display: none; }
  .ns-login-card { width: min(100%, 560px); padding: 30px 24px 26px; border-radius: 22px; }
  .ns-login-card__mark { width: 66px; height: 66px; margin-bottom: 18px; font-size: 24px; }
  .ns-login-card__header h2 { font-size: 23px; }
  .ns-login-footer { position: absolute; bottom: 18px; }
}

@media (max-width: 480px) {
  .ns-login { padding-inline: 10px; }
  .ns-login__brand-panel { padding-inline: 10px; }
  .ns-login__logo { width: 245px; }
  .ns-login__brand-panel p { display: none; }
  .ns-login-card { padding: 26px 18px 22px; border-radius: 18px; }
  .ns-login-form__options { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ns-login-field .form-control { height: 50px; font-size: 14px; }
}

/* =========================================================
   NEWSON — Recuperación de acceso
   ========================================================= */
body.page-password\.request,
body.page-password\.reset,
body.page-password\.email {
  background: #f2f4f6;
}
body.page-password\.request .account-pages,
body.page-password\.reset .account-pages,
body.page-password\.email .account-pages {
  background:
    radial-gradient(circle at 10% 12%, rgba(245,158,11,.16), transparent 28%),
    radial-gradient(circle at 95% 92%, rgba(245,158,11,.13), transparent 26%),
    linear-gradient(135deg, #f8f9fa, #e9edf1);
}
body.page-password\.request .wrapper-page,
body.page-password\.reset .wrapper-page,
body.page-password\.email .wrapper-page {
  width: 100% !important;
  max-width: none !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.ns-recovery {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
}
.ns-recovery__intro,
.ns-recovery__form-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-recovery__intro {
  position: relative;
  padding: 60px clamp(38px, 7vw, 108px);
  overflow: hidden;
  background: linear-gradient(145deg, #20262c, #303840);
  color: #fff;
}
.ns-recovery__intro::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -220px;
  top: -180px;
  border: 68px solid rgba(245,158,11,.17);
  border-radius: 50%;
}
.ns-recovery__intro::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  left: 7%;
  bottom: 8%;
  opacity: .24;
  background-image: radial-gradient(#fff 1.2px, transparent 1.2px);
  background-size: 15px 15px;
}
.ns-recovery__intro-content { position: relative; z-index: 2; width: min(100%, 650px); }
.ns-recovery__logo { display: inline-block; margin-bottom: 42px; }
.ns-recovery__logo img { display: block; width: min(100%, 350px); height: auto; filter: brightness(0) invert(1); }
.ns-recovery__eyebrow {
  display: block;
  margin-bottom: 13px;
  color: #ffb02e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.ns-recovery__intro h1 {
  max-width: 610px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.04em;
}
.ns-recovery__intro > div > p,
.ns-recovery__intro-content > p {
  max-width: 590px;
  margin: 0;
  color: #c2cad1;
  font-size: 16px;
  line-height: 1.7;
}
.ns-recovery__steps { margin-top: 38px; display: grid; gap: 13px; }
.ns-recovery__step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}
.ns-recovery__step > span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f59e0b;
  color: #252a30;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}
.ns-recovery__step strong,
.ns-recovery__step small { display: block; }
.ns-recovery__step strong { color: #fff; font-size: 13px; }
.ns-recovery__step small { margin-top: 3px; color: #aeb8c1; font-size: 11px; }

.ns-recovery__form-panel { padding: 48px clamp(28px, 6vw, 90px); }
.ns-recovery-card {
  width: min(100%, 540px);
  padding: 38px 42px 32px;
  border: 1px solid #fff;
  border-radius: 25px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 70px rgba(37,42,48,.16);
}
.ns-recovery-card__icon,
.ns-reset-card__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 19px;
  border: 1px solid #f1d6a7;
  border-radius: 20px;
  background: #fff3dd;
  color: #d97706;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 9px 22px rgba(217,119,6,.12);
}
.ns-recovery-card__header { margin-bottom: 25px; text-align: center; }
.ns-recovery-card__header > span {
  color: #d97706;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ns-recovery-card__header h2 {
  margin: 8px 0 8px;
  color: #252a30;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.025em;
}
.ns-recovery-card__header p { margin: 0; color: #737e89; font-size: 14px; line-height: 1.55; }
.ns-recovery-alert {
  margin-bottom: 20px;
  padding: 13px 14px;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.ns-recovery-alert--success { border: 1px solid #bde1ca; background: #effaf3; color: #257443; }
.ns-recovery-alert i { margin-top: 2px; font-size: 17px; }
.ns-recovery-alert strong,
.ns-recovery-alert span { display: block; }
.ns-recovery-alert strong { font-size: 12px; }
.ns-recovery-alert span { margin-top: 2px; font-size: 12px; line-height: 1.45; }
.ns-recovery-form .form-group { margin-bottom: 19px; }
.ns-recovery-form label { display: block; margin-bottom: 8px; color: #343b43; font-size: 13px; font-weight: 800; }
.ns-recovery-field { position: relative; }
.ns-recovery-field > i {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  transform: translateY(-50%);
  color: #97a0aa;
  pointer-events: none;
}
.ns-recovery-field .form-control {
  width: 100%;
  height: 54px;
  padding: 11px 15px 11px 46px;
  border: 1px solid #d4dbe2;
  border-radius: 12px;
  background: #fff;
  color: #252a30;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(37,42,48,.035);
}
.ns-recovery-field .form-control:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.13);
}
.ns-recovery-error {
  display: block;
  margin-top: 7px;
  color: #b13b2e;
  font-size: 12px;
  line-height: 1.4;
}
.ns-recovery-error i { margin-right: 4px; }
.ns-recovery-submit {
  width: 100%;
  min-height: 54px;
  padding: 12px 20px;
  border: 1px solid #d97706;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffad17, #ed8c00);
  color: #252a30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(217,119,6,.2);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.ns-recovery-submit:hover,
.ns-recovery-submit:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 13px 28px rgba(217,119,6,.28); }
.ns-recovery-card__notice {
  margin-top: 20px;
  padding: 12px 13px;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  background: #f8f9fa;
  color: #69747e;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
}
.ns-recovery-card__notice i { margin-top: 2px; color: #d97706; }
.ns-recovery-back {
  margin-top: 20px;
  color: #59636d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.ns-recovery-back:hover { color: #d97706; }

.ns-reset {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  padding: 30px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ns-reset-card {
  width: min(100%, 520px);
  padding: 34px 40px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(37,42,48,.18);
}
.ns-reset-card__logo { display: block; margin-bottom: 20px; text-align: center; }
.ns-reset-card__logo img { width: min(100%, 270px); }
.ns-reset-card h1 { margin: 0 0 8px; color: #252a30; font-size: 27px; text-align: center; }
.ns-reset-card > p { margin: 0 0 24px; color: #737e89; font-size: 14px; text-align: center; }

@media (max-width: 900px) {
  .ns-recovery { grid-template-columns: 1fr; }
  .ns-recovery__intro { padding: 34px 24px 28px; text-align: center; }
  .ns-recovery__intro-content { width: min(100%, 610px); }
  .ns-recovery__logo { margin-bottom: 22px; }
  .ns-recovery__logo img { width: min(100%, 280px); margin: 0 auto; }
  .ns-recovery__intro h1 { margin-inline: auto; font-size: clamp(31px, 8vw, 44px); }
  .ns-recovery__intro-content > p { margin-inline: auto; font-size: 14px; }
  .ns-recovery__steps { display: none; }
  .ns-recovery__form-panel { padding: 24px 14px 55px; }
}
@media (max-width: 480px) {
  .ns-recovery__intro { padding-inline: 16px; }
  .ns-recovery__intro-content > p { display: none; }
  .ns-recovery-card,
  .ns-reset-card { padding: 28px 18px 24px; border-radius: 19px; }
  .ns-recovery-card__header h2,
  .ns-reset-card h1 { font-size: 23px; }
  .ns-recovery-field .form-control { height: 50px; font-size: 14px; }
}
