/* ============================================================
   Highsupply · Login / Crear cuenta (Sesión I)
   Página standalone: header mínimo + panel oscuro + formulario.
   Carga solo en authentication/registration vía block stylesheets.
   ============================================================ */

/* ---------- Reset del chrome de la tienda en estas páginas ----------
   #authentication = login/registro · #password = recuperar contraseña        */
:is(body#authentication, body#password) {
  background: var(--hs-bg);
}
:is(body#authentication, body#password) #header,
:is(body#authentication, body#password) #footer,
:is(body#authentication, body#password) nav.breadcrumb {
  display: none;
}
:is(body#authentication, body#password) #wrapper {
  padding: 0;
  margin: 0;
}
:is(body#authentication, body#password) #inner-wrapper {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
:is(body#authentication, body#password) #inner-wrapper > .row {
  margin: 0;
}
:is(body#authentication, body#password) #content-wrapper {
  padding: 0;
}
:is(body#authentication, body#password) #main,
:is(body#authentication, body#password) .page-content {
  margin: 0;
}

/* Notificaciones PS (p.ej. "cuenta creada") visibles y con aire */
:is(body#authentication, body#password) #notifications .container {
  max-width: 480px;
  padding: 16px;
}

/* ---------- Header mínimo ---------- */
.hs-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 60px;
  padding: 0 var(--hs-gutter);
  background: var(--hs-bg);
  border-bottom: 1px solid var(--hs-border-soft);
}
.hs-auth-header__back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  color: var(--hs-text);
}
.hs-auth-header__logo {
  font-family: var(--hs-font-display);
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--hs-text);
}
.hs-auth-header__logo:hover {
  color: var(--hs-text);
  text-decoration: none;
}
.hs-auth-header__logo span {
  color: var(--hs-accent-text);
}
.hs-auth-header__help {
  font: 500 13px/1 var(--hs-font-body);
  color: var(--hs-text-mute);
}
.hs-auth-header__help:hover {
  color: var(--hs-text);
  text-decoration: none;
}

/* ---------- Grid principal ---------- */
.hs-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: calc(100vh - 60px);
  background: var(--hs-bg);
}

/* ---------- Panel lateral oscuro ---------- */
.hs-auth__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--hs-space-7);
  padding: 56px 64px;
  background: #0a0a0a;
  color: #fff;
}
.hs-auth__eyebrow {
  font: 700 11px/1 var(--hs-font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hs-accent-text);
  margin-bottom: 20px;
}
.hs-auth__claim {
  font-family: var(--hs-font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 18px;
}
.hs-auth__side-text {
  font: 400 14px/1.6 var(--hs-font-body);
  color: #9a9a9a;
  max-width: 340px;
  margin: 0;
}
.hs-auth__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hs-auth__perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.hs-auth__perks svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--hs-accent-text);
}
.hs-auth__perks strong {
  display: block;
  font: 600 13px/1.3 var(--hs-font-body);
  color: #fff;
  margin-bottom: 3px;
}
.hs-auth__perks span {
  font: 400 12px/1.4 var(--hs-font-body);
  color: #8a8a8a;
}

/* ---------- Columna del formulario ---------- */
.hs-auth__formcol {
  display: flex;
  justify-content: center;
  padding: 48px var(--hs-gutter) 64px;
}
.hs-auth__box {
  width: 100%;
  max-width: 384px;
}

/* Tabs */
.hs-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: var(--hs-surface-alt);
  border-radius: var(--hs-radius-pill);
  margin-bottom: 28px;
}
.hs-auth__tabs a {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--hs-radius-pill);
  font: 600 13px/1 var(--hs-font-body);
  color: var(--hs-text-mute);
  transition: color var(--hs-transition);
}
.hs-auth__tabs a:hover {
  color: var(--hs-text);
  text-decoration: none;
}
.hs-auth__tabs a.is-active {
  background: #0a0a0a;
  color: #fff;
}

/* Título */
.hs-auth__title {
  font-family: var(--hs-font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--hs-text);
  margin: 0 0 8px;
}
.hs-auth__subtitle {
  font: 400 13px/1.5 var(--hs-font-body);
  color: var(--hs-text-mute);
  margin: 0 0 24px;
}

/* Social login */
.hs-auth__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hs-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  font: 500 13.5px/1 var(--hs-font-body);
  color: var(--hs-text);
  transition: border-color var(--hs-transition);
}
.hs-social-btn:hover {
  border-color: var(--hs-text-faint);
  color: var(--hs-text);
  text-decoration: none;
}
.hs-social-btn img {
  display: block;
}

/* Divider "O CON TU EMAIL" */
.hs-auth__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--hs-text-faint);
  font: 700 10px/1 var(--hs-font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hs-auth__divider::before,
.hs-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hs-border);
}

/* ---------- Campos ---------- */
.hs-auth-form .hs-field {
  margin-bottom: 16px;
}
.hs-field label {
  display: block;
  font: 600 12px/1 var(--hs-font-body);
  color: var(--hs-text);
  margin-bottom: 7px;
}
.hs-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
  font: 400 14px/1 var(--hs-font-body);
  color: var(--hs-text);
  transition: border-color var(--hs-transition);
}
.hs-field input::placeholder {
  color: var(--hs-text-faint);
}
.hs-field input:focus {
  outline: none;
  border-color: var(--hs-text);
}
.hs-field.has-error input {
  border-color: #c0392b;
}
.hs-field__error {
  margin: 6px 0 0;
  font: 400 12px/1.4 var(--hs-font-body);
  color: #c0392b;
}
.hs-auth-form__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Checkbox */
.hs-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 400 13px/1.3 var(--hs-font-body);
  color: var(--hs-text);
  cursor: pointer;
  margin: 0;
}
.hs-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #0a0a0a;
  cursor: pointer;
}
.hs-check--newsletter {
  margin: 6px 0 12px;
}

/* Fila recordarme / olvidaste */
.hs-auth-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 22px;
}
.hs-auth-form__forgot {
  font: 600 12px/1 var(--hs-font-body);
  color: var(--hs-accent-text);
  white-space: nowrap;
}
.hs-auth-form__forgot:hover {
  color: var(--hs-accent-hover);
  text-decoration: none;
}

/* Línea legal (registro) */
.hs-auth-form__legal {
  font: 400 11.5px/1.55 var(--hs-font-body);
  color: var(--hs-text-mute);
  margin: 0 0 18px;
}
.hs-auth-form__legal a {
  color: var(--hs-accent-text);
  font-weight: 600;
}

/* CTA principal */
.hs-auth-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  background: var(--hs-accent-fill);
  color: var(--hs-accent-ink);
  border: 0;
  border-radius: var(--hs-radius-pill);
  font: 700 12px/1 var(--hs-font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--hs-transition);
}
.hs-auth-form__submit:hover {
  background: var(--hs-accent-hover);
  color: var(--hs-accent-ink);
}

/* Links bajo el formulario */
.hs-auth__switch {
  text-align: center;
  margin: 22px 0 0;
  font: 400 13px/1.4 var(--hs-font-body);
  color: var(--hs-text-mute);
}
.hs-auth__switch a {
  color: var(--hs-accent-text);
  font-weight: 600;
}
.hs-auth__switch a:hover {
  color: var(--hs-accent-hover);
  text-decoration: none;
}
.hs-auth__guest {
  text-align: center;
  margin: 8px 0 0;
  font: 400 12px/1.4 var(--hs-font-body);
  color: var(--hs-text-mute);
}
.hs-auth__guest a {
  color: var(--hs-text-mute);
  text-decoration: underline;
}
.hs-auth__guest a:hover {
  color: var(--hs-text);
}

/* Strip portal mayorista */
.hs-auth__b2b {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--hs-border);
  text-align: center;
}
.hs-auth__b2b a {
  font: 400 12px/1.4 var(--hs-font-body);
  color: var(--hs-text);
}
.hs-auth__b2b a:hover {
  text-decoration: none;
}
.hs-auth__b2b a:hover strong {
  color: var(--hs-accent-text);
}
.hs-auth__b2b strong {
  font-weight: 700;
  transition: color var(--hs-transition);
}
.hs-auth__b2b-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hs-accent-fill);
  margin-right: 7px;
  vertical-align: 1px;
}

/* Errores globales del form (form-errors.tpl) */
.hs-auth__box .help-block ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.hs-auth__box .help-block li.alert-danger {
  background: #fbecea;
  border: 1px solid #efc7c1;
  border-radius: var(--hs-radius);
  color: #8f2f22;
  font: 400 13px/1.5 var(--hs-font-body);
  padding: 12px 14px;
  margin-bottom: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hs-auth {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 56px);
  }
  .hs-auth__side {
    display: none;
  }
  .hs-auth-header {
    height: 56px;
    padding: 0 16px;
  }
  .hs-auth-header__back {
    display: flex;
  }
  .hs-auth-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
  }
  .hs-auth-header__help {
    display: none;
  }
  .hs-auth__formcol {
    padding: 24px 16px 56px;
    justify-content: stretch;
  }
  .hs-auth__box {
    max-width: none;
  }
  .hs-auth__title {
    font-size: 30px;
  }
  .hs-auth__tabs {
    margin-bottom: 24px;
  }
}

/* custom_s_1.css (iqitthemeeditor) pinta a:link:not(.btn) en gris (0,3,1)
   y pisa el color del botón de Google — re-afirmado con !important */
a.hs-social-btn, a.hs-social-btn:hover { color: var(--hs-text) !important; }
a.hs-auth-header__logo, a.hs-auth-header__logo:hover { color: var(--hs-text) !important; }
a.hs-auth-header__help { color: var(--hs-text-mute) !important; }
a.hs-auth-header__help:hover { color: var(--hs-text) !important; }
a.hs-auth-form__forgot, a.hs-auth-form__forgot:hover { color: var(--hs-accent-text) !important; }

/* ── Recuperar contraseña (password-email / -infos / -new) ──
   Reusa el shell del login; solo añade la nota informativa y ajusta la caja
   cuando no hay pestañas de login/registro. */
.hs-auth--solo .hs-auth__box { padding-top: 40px; }
.hs-auth__note {
  font: 400 13px/1.6 var(--hs-font-body);
  color: var(--hs-text-mute);
  margin: 0;
  padding: 14px 16px;
  background: var(--hs-surface-soft);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius);
}
.hs-auth--solo .hs-alert { margin-bottom: 18px; }
