/*
 * NOTIKIT — pantallas de acceso (layout "auth cover" de Frest 5.1.0).
 * Archivo propio de Notikit (no viene de AltumCode ni de Frest).
 * Marcado: themes/altum/views/partials/auth_cover.php (incluido por basic_wrapper.php).
 * Orden de carga: Frest -> page-auth.css -> custom.css -> bs4-compat.css -> notikit-panel.css
 * -> notikit-stage.css -> este. Las vistas de cada pantalla (login/index.php, etc.) siguen con
 * su marcado Bootstrap 4; aca solo se les da jerarquia y aire.
 */

body.nk-auth { background: var(--nk-card-bg); }
html.dark-style body.nk-auth { background: #283144; }

.nk-auth-wrapper.authentication-cover .authentication-inner { height: auto; min-height: 100vh; min-height: 100dvh; }

/* ==========================================================================
   Lado visual
   ========================================================================== */
.nk-auth-visual {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60rem 40rem at 110% -10%, rgba(90, 141, 238, 0.55), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(253, 172, 65, 0.22), transparent 60%),
    linear-gradient(140deg, #141b3d 0%, #1f2f6e 48%, #3156c2 100%);
}
.nk-auth-visual::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.9), transparent 65%);
  -webkit-mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.9), transparent 65%);
}
.nk-auth-visual-inner {
  position: sticky; top: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  width: 100%; height: 100vh; height: 100dvh; min-height: 38rem;
  padding: 2.25rem 3.5rem 2.75rem;
}
.nk-auth-visual-brand { display: inline-flex; align-items: center; align-self: flex-start; color: #fff; font-family: "Rubik", sans-serif; font-size: 1.625rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.nk-auth-visual-brand:hover, .nk-auth-visual-brand:focus { color: #fff; opacity: 0.9; }
.nk-auth-logo { max-height: 2.5rem; max-width: 11rem; width: auto; }

.nk-auth-stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; }
.nk-auth-stage .nk-stage { max-width: 36rem; }
.nk-auth-stage .nk-stage-glow { opacity: 0.6; }
.nk-auth-stage .nk-browser { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 2rem 4rem -1rem rgba(8, 12, 32, 0.6); }

.nk-auth-pitch { max-width: 38rem; }
.nk-auth-pitch-title { margin: 0 0 0.5rem; font-family: "Rubik", sans-serif; font-size: clamp(1.75rem, 2.4vw, 2.375rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: #fff; }
.nk-auth-pitch-text { margin: 0 0 1.25rem; font-size: 1.0625rem; line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.nk-auth-bullets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.nk-auth-bullets li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; border-radius: 50rem;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8125rem; color: #fff;
}
.nk-auth-bullets i { font-size: 1rem; color: #ffd08a; }

@media (max-height: 760px) {
  .nk-auth-visual-inner { padding-top: 1.5rem; padding-bottom: 1.75rem; }
  .nk-auth-stage .nk-stage { max-width: 30rem; }
  .nk-auth-bullets { display: none; }
}

/* ==========================================================================
   Lado formulario
   ========================================================================== */
.nk-auth-side { position: relative; min-height: 100vh; min-height: 100dvh; padding: 1.25rem 1.5rem; }
.nk-auth-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; }
.nk-auth-brand { color: var(--nk-heading-color); text-decoration: none; }
.nk-auth-brand .app-brand-text { font-family: "Rubik", sans-serif; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--nk-heading-color); }
@media (min-width: 992px) { .nk-auth-brand { visibility: hidden; } }
.nk-auth-icon-button { color: var(--nk-body-color); background: transparent; border: 0; border-radius: 50%; }
.nk-auth-icon-button:hover, .nk-auth-icon-button:focus-visible { color: var(--nk-primary); background: var(--nk-soft-bg); }

.nk-auth-main { flex: 1 1 auto; display: flex; align-items: center; padding: 2rem 0; }
.nk-auth-content { width: 100%; max-width: 25rem; margin: 0 auto; }

.nk-auth-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem;
  font-size: 0.8125rem; color: var(--nk-body-color);
}
.nk-auth-footer a { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--nk-body-color); text-decoration: none; }
.nk-auth-footer a:hover { color: var(--nk-primary); }

/* Fondo suave en movil / tablet, donde no hay lado visual */
@media (max-width: 991.98px) {
  .nk-auth-side::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 16rem; pointer-events: none;
    background:
      radial-gradient(22rem 12rem at 100% 0, rgba(90, 141, 238, 0.2), transparent 70%),
      radial-gradient(18rem 10rem at 0 0, rgba(253, 172, 65, 0.14), transparent 70%);
  }
  .nk-auth-side > * { position: relative; }
}

/* ---- Contenido de las vistas del producto ---- */
.nk-auth-content h1 { margin-bottom: 0.375rem; font-size: 1.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--nk-heading-color); }
.nk-auth-content h1 + p { font-size: 0.9375rem; color: var(--nk-body-color) !important; }
.nk-auth-content form.mt-4 { margin-top: 1.75rem !important; }
.nk-auth-content .form-control { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.nk-auth-content .btn-block, .nk-auth-content .btn.btn-primary { padding-top: 0.65rem; padding-bottom: 0.65rem; font-weight: 500; }
.nk-auth-content .btn.btn-light { display: flex; align-items: center; justify-content: center; gap: 0.5rem; border: 1px solid var(--nk-border); background: transparent; }
.nk-auth-content .btn.btn-light:hover { background: var(--nk-soft-bg); }
.nk-auth-content .btn.btn-light img { width: 1.125rem; height: 1.125rem; margin: 0 !important; }
.nk-auth-content hr { margin: 1.5rem 0 1rem !important; border-color: var(--nk-border-soft); opacity: 1; }
.nk-auth-content a { text-decoration: none; }
.nk-auth-content a.text-muted:hover { color: var(--nk-primary) !important; }
.nk-auth-content .text-muted { color: var(--nk-body-color) !important; }
.nk-auth-content .custom-control-label small { font-size: 0.875rem; }
.nk-auth-content .custom-control-label a, .nk-auth-content .font-weight-bold { color: var(--nk-primary); font-weight: 500 !important; }
.nk-auth-content .mt-5.text-center { margin-top: 2rem !important; }
.nk-auth-content .alert { font-size: 0.9375rem; }
.nk-auth-content #twofa_token { font-size: 1.375rem; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.nk-auth-content #twofa_token::placeholder { letter-spacing: 0.3em; opacity: 0.45; }
/* fila "recordarme" + links de recuperacion: que corte prolijo cuando no entra en una linea */
.nk-auth-content form > .d-flex.flex-column.flex-md-row { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 0.5rem 1rem; }
.nk-auth-content form > .d-flex.flex-column.flex-md-row > * { white-space: nowrap; }
/* custom.js arma el "ojito" de la contraseña dentro del label */
.nk-auth-content [data-password-toggle-view] label a { padding: 0 0.25rem; color: var(--nk-muted) !important; }
.nk-auth-content [data-password-toggle-view] label a:hover { color: var(--nk-primary) !important; }
/* sent-activation deshabilita el boton con la clase .disabled */
.nk-auth-content a.btn.disabled { opacity: 0.6; }

/* Foco visible en todo lo interactivo */
.nk-auth a:focus-visible, .nk-auth button:focus-visible, .nk-auth .btn:focus-visible { outline: 2px solid var(--nk-primary); outline-offset: 2px; }
.nk-auth-visual a:focus-visible { outline-color: #fff; }

/* RTL: la flecha de "volver" apunta al otro lado */
[dir="rtl"] .nk-auth-footer .bx-left-arrow-alt { transform: scaleX(-1); }

/* Primer uso: "Plan gratis para siempre, sin tarjeta" arriba del formulario de registro (tambien en celular) */
.nk-auth-free-note {
  display: inline-flex; align-items: center; gap: 0.375rem; margin: 0 0 1rem; padding: 0.3rem 0.75rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--nk-primary); background: var(--nk-soft-bg); border-radius: 999px;
}
.nk-auth-free-note i { font-size: 1rem; }
