/**
 * Nawili Caisse — Écran Login
 * Scope : body.nawili-login (ajouté par la vue sign-in Nawili)
 * Ne touche à aucune classe NexoPOS — wrapper dédié uniquement.
 */

/* ── Body override — neutralise le fond NexoPOS ───────────────────────── */
body.nawili-login,
html.nawili-login-html body {
  background: transparent !important;
  overflow-x: hidden !important;
}
html.nawili-login-html {
  background: #04081a !important;
}

/* ── Page wrapper (div contenant tout le contenu) ─────────────────────── */
.nw-login-page {
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(43,116,255,.30), transparent 60%),
    radial-gradient(900px 620px at 8%  8%,   rgba(47,220,255,.16), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(155,107,255,.16), transparent 55%),
    linear-gradient(180deg, #04081a, #060d27 45%, #04081a);
  color: var(--nw-ink);
  font-family: var(--nw-font-ui);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ── Grid overlay ─────────────────────────────────────────────────────── */
.nw-login-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(120,160,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 700px at 60% 0%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 700px at 60% 0%, #000, transparent 80%);
  z-index: 0;
}

/* ── Layout 2 colonnes ────────────────────────────────────────────────── */
.nw-login-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 100vh;
}

/* Colonne gauche : formulaire */
.nw-login-left {
  flex: 1 1 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* Colonne droite : arguments produit */
.nw-login-right {
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  background: radial-gradient(600px 500px at 60% 30%, rgba(43,116,255,.18), transparent 65%);
}

/* ── Carte glassmorphism ──────────────────────────────────────────────── */
.nw-login-card {
  width: 100%;
  max-width: 400px;
  padding: 34px 32px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(13,26,74,.72), rgba(7,13,38,.6));
  border: 1px solid var(--nw-stroke2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
  animation: nwRise .4s ease both;
}

/* ── Logo + titre ─────────────────────────────────────────────────────── */
.nw-login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 24px;
}

.nw-login-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.nw-login-brand-name {
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 21px;
}

.nw-login-brand-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--nw-muted2);
}

/* ── Titre formulaire ─────────────────────────────────────────────────── */
.nw-login-title {
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 19px;
  text-align: center;
  color: var(--nw-ink);
}

.nw-login-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--nw-muted);
  text-align: center;
  margin: 5px 0 22px;
}

/* ── Checkbox remember ────────────────────────────────────────────────── */
.nw-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nw-muted);
  cursor: pointer;
}

.nw-checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--nw-stroke2);
  background: rgba(47,220,255,.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ── Forgot password link ─────────────────────────────────────────────── */
.nw-forgot-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nw-cyan);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.nw-forgot-link:hover { opacity: .75; }

/* ── CTA submit ───────────────────────────────────────────────────────── */
.nw-login-btn {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  cursor: pointer;
  border: none;
  color: #fff;
  font-family: var(--nw-font-ui);
  font-size: 16px;
  font-weight: 700;
  background: var(--nw-btn-primary-bg);
  box-shadow: var(--nw-btn-primary-sh);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .1s, box-shadow .15s;
}
.nw-login-btn:active  { transform: translateY(2px); }
.nw-login-btn:hover   { box-shadow: var(--nw-btn-primary-sh), var(--nw-glow-cyan); }
.nw-login-btn:focus-visible { outline: 2px solid var(--nw-cyan); outline-offset: 3px; }

/* ── Errors NexoPOS ───────────────────────────────────────────────────── */
.nw-error-msg {
  color: var(--nw-red);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Colonne droite : points marketing ───────────────────────────────── */
.nw-login-headline {
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
  margin-bottom: 14px;
}

.nw-login-desc {
  font-size: 14px;
  font-weight: 600;
  color: var(--nw-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

.nw-login-points {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.nw-login-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 15px;
  background: var(--nw-glass);
  border: 1px solid var(--nw-stroke);
  backdrop-filter: blur(10px);
  animation: nwRise .4s ease both;
}

.nw-login-point-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
}

.nw-login-point-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--nw-ink);
}

.nw-login-point-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--nw-muted);
}

/* ── Responsive mobile ────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .nw-login-right  { display: none; }    /* Colonne arguments cachée sur mobile */
  .nw-login-left   { padding: 24px 16px; }
  .nw-login-card   { padding: 28px 20px; }
  .nw-login-btn    { height: 50px; font-size: 15px; }
}

@media (max-width: 420px) {
  .nw-login-card { border-radius: 20px; }
}
