/* Pages without a session in the client area's language (Diseño, P7, piezas/whmcs-area/acceso.html, recuperar.html
   and contacto.html, 03-11-2026): sign in, recover the password and contact. No side menu: the heading centred and one
   card centred under it; contact, in two columns. The fields, cards, buttons and notices are area.css's and
   area-cuenta.css's; everything here hangs from .area-sin-sesion, so the client area does not change. */
/* the top padding stays area.css's (div.area, 7em: the 4em of the fixed site header and 3em of room) */
/* widths with the padding included (the theme is border-box): 460 and 980 px of content, as in the piece */
.area.area-sin-sesion { grid-template-columns: minmax(0, 1fr); max-width: 500px; gap: 0; }
.area.area-sin-sesion.ancha { max-width: 1020px; }
.area-sin-sesion .area-cabecera { justify-content: center; text-align: center; margin-bottom: 1.6em; }
.area-sin-sesion .area-cabecera .sub { justify-content: center; }
.area-sin-sesion .area-campos { display: grid; gap: 1.1em; }
.area-sin-sesion .area-boton.entero { width: 100%; min-height: 48px; font-size: 1.05em; margin-top: .4em; }
.area-sin-sesion .area-aviso.sin-margen { margin: 0; }
/* a link in the text is underlined, as in the piece: its colour alone does not tell it from the text (WCAG 1.4.1) */
.area-sin-sesion a:not(.area-boton):not(.area-boton-sec) { text-decoration: underline; }

/* show or hide the password: a text button inside the 48 px field, on the right, finger-sized */
.area-sin-sesion .area-clave { position: relative; }
.area-sin-sesion .area-clave input { padding-right: 6em; }
.area-sin-sesion .area-clave button { position: absolute; right: 2px; top: 2px; bottom: 2px; min-width: 44px; padding: 0 .8em; border: 0;
  border-radius: .35em; background: none; font: inherit; font-size: .88em; font-weight: bold; color: var(--link-color); cursor: pointer; }
.area-sin-sesion .area-clave button:hover { background: var(--fondo); }
.area-sin-sesion .area-clave button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }

/* "Recordarme" on the left and the forgotten password on the right, in one line; both 44 px high for the finger, the
   link given back with a negative margin so the line does not grow */
.area-sin-sesion .area-entre { display: flex; align-items: center; justify-content: space-between; gap: 0 1em; flex-wrap: wrap; font-size: .92em; }
.area-sin-sesion .area-casilla { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; cursor: pointer; color: var(--tinta); }
.area-sin-sesion .area-casilla input { width: 17px; height: 17px; margin: 0; border-radius: .25em; accent-color: var(--primary-color); flex: none; }
.area-sin-sesion .area-casilla input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.area-sin-sesion .area-entre a { display: inline-block; padding: 12px; margin: -12px; }
.area-sin-sesion .area-entre a:focus-visible { outline-offset: -10px; }

/* the foot of the card, for what is not the main action (the new account, back to sign in), and the help under it */
.area-sin-sesion .area-pie-tarjeta { margin: 1em 0 0; padding: 1em 1.5em; border-top: 1px solid var(--linea); background: var(--fondo);
  border-radius: 0 0 .6em .6em; text-align: center; line-height: 1.5; color: var(--tinta); }
/* a link alone in the foot ("Volver a entrar"), finger-sized without making the foot taller; its ring stays 2px off the text */
.area-sin-sesion .area-pie-tarjeta .pie-enlace { display: inline-block; padding: 14px; margin: -14px; }
.area-sin-sesion .area-pie-tarjeta .pie-enlace:focus-visible { outline-offset: -12px; }
.area-sin-sesion .area-debajo { text-align: center; margin: 1.3em 0 0; color: var(--texto); line-height: 1.6; }

/* recover the password: which step, over its sentence */
.area-sin-sesion .area-paso { display: block; font-size: .78em; letter-spacing: .14em; text-transform: uppercase; color: var(--link-color);
  font-weight: bold; margin-bottom: .5em; }
.area-sin-sesion .area-paso-texto { margin: 0; line-height: 1.55; color: var(--tinta); }

/* the second factor (two-factor-challenge.tpl): the 2FA module's field and button in the card. Its label is the
   template's, at the gap of a field (.4em) instead of the card's; the module's <br> and align="center" do not apply */
.area-sin-sesion .area-2fa-etiqueta { margin-bottom: -.7em; font-weight: bold; font-size: .9em; color: var(--tinta); }
.area-sin-sesion .area-2fa :is(div, form) { display: grid; gap: 1.1em; text-align: left; }
.area-sin-sesion .area-2fa br { display: none; }
/* without JS the module's button keeps its Bootstrap classes (with JS it becomes .area-boton.entero): the same size */
.area-sin-sesion .area-2fa :is(.btn, input[type=submit]) { width: 100%; min-height: 48px; margin: .4em 0 0; font-size: 1.05em; }
/* the switch to the backup code needs JS: without it (body.nojs, removed by base.js) the link is not offered */
body.nojs .area-sin-sesion .solo-con-js { display: none; }

/* the image captcha as a field: the image at the field's 48 px and its own width (Diseño), "Otra imagen" beside it */
.area-sin-sesion .area-captcha { display: flex; align-items: center; gap: .8em .5em; flex-wrap: wrap; } /* "Otra imagen" beside the 200 px image down to 390 px */
.area-sin-sesion .area-captcha img { flex: none; height: 48px; width: auto; border-radius: .45em; }
.area-sin-sesion .area-captcha .area-enlace { align-self: center; min-height: 44px; }
.area-sin-sesion .area-captcha input { flex: 1 1 100%; } /* on its own line, under the image and "Otra imagen" */

/* a field WHMCS complains about: area-cuenta.css marks inputs and selects (.area-campo.con-error); the message too */
.area-sin-sesion .area-campo.con-error textarea { border-color: #d01c2a; }
/* the errors WHMCS lists (contact) */
.area-sin-sesion .area-aviso.rojo p { margin: 0; }
.area-sin-sesion .area-aviso.rojo ul { margin: .3em 0 0; padding: 0 0 0 1.2em; }
.area-sin-sesion .area-aviso.rojo li { list-style: disc; }

/* contact: the form on the left and the other ways to reach us on the right */
.area-sin-sesion .area-contacto { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5em; align-items: start; }
.area-sin-sesion .area-contacto .privacidad { margin: 1.1em 0 0; line-height: 1.55; color: var(--tinta); }
.area-sin-sesion .area-otras { padding: 1.3em 1.5em 1.4em; }
/* as specific as area.css's card heading, which pads it, and loaded after it */
.area.area-sin-sesion .area-tarjeta.area-otras > h2 { margin: 0 0 .9em; padding: 0; font-size: 1.1em; color: var(--tinta); }
/* side by side, not one under the other: more specific than clientarea.css's gap between stacked cards */
.area.area-sin-sesion .area-contacto > .area-tarjeta + .area-tarjeta { margin-top: 0; }
.area-sin-sesion .area-otras ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9em; }
.area-sin-sesion .area-otras li { display: grid; gap: .15em; line-height: 1.3; }
.area-sin-sesion .area-otras li span { color: var(--gris); font-size: .88em; }
.area-sin-sesion .area-otras li b, .area-sin-sesion .area-otras li a { font-size: 1.05em; }
/* the three ways are links on their own: finger-sized without moving the list */
.area-sin-sesion .area-otras li a { display: inline-block; padding: 12px; margin: -12px; }
.area-sin-sesion .area-otras li a:focus-visible { outline-offset: -10px; }
.area-sin-sesion .area-otras .horario { margin: 1.2em 0 0; padding-top: 1em; border-top: 1px solid var(--linea); line-height: 1.55; color: var(--tinta); }
.area-sin-sesion .area-otras .cliente { margin: 1em 0 0; line-height: 1.55; color: var(--texto); }

@media (max-width: 860px) {
  .area-sin-sesion .area-contacto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  div.area.area-sin-sesion { padding-top: 5.6em; } /* the 4em header and 1.6em of room */
  .area-sin-sesion .area-cabecera h1 { font-size: 1.55em; }
  .area-sin-sesion .area-entre { flex-direction: column; align-items: flex-start; }
  .area-sin-sesion .area-rejilla { grid-template-columns: minmax(0, 1fr); }
}
