/* =========================================================
   NunuaNow Web POS — Consolidated login (mockup layout)
   Additive overlay. Scoped via body.nn-login.
   ========================================================= */

body.nn-login {
  --nn-ink: #0b1220;
  --nn-ink-soft: #111827;
  --nn-accent: #10b981;
  --nn-accent-deep: #059669;
  --nn-accent-soft: rgba(16, 185, 129, 0.14);
  --nn-surface: #e8edf2;
  --nn-card: #ffffff;
  --nn-muted: #64748b;
  --nn-border: #e2e8f0;
  --nn-radius: 28px;
  --nn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body.nn-login #pos-dl-bar,
body.nn-login #pos-download-banner,
body.nn-login #pos-download-fab,
body.nn-login .pos-download-banner,
body.nn-login .pos-download-fab,
body.nn-login [data-pos-download],
body.nn-login a[href="/download.html"][style*="position"],
body.nn-login .nn-hide,
body.nn-login [data-pos-login-branding],
body.nn-login [data-pos-forgot] {
  display: none !important;
}

body.nn-login,
body.nn-login #root {
  min-height: 100vh;
  min-height: 100dvh;
}

body.nn-login {
  background: var(--nn-surface) !important;
  color: var(--nn-ink);
}

body.nn-login #root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Shell ---------- */
body.nn-login .nn-login-shell,
body.nn-login .min-h-screen.flex.items-center.justify-center {
  display: grid !important;
  grid-template-columns: 1fr;
  align-items: stretch !important;
  justify-content: stretch !important;
  flex: 1 1 auto;
  min-height: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  gap: 0 !important;
}

/* ---------- Left brand ---------- */
body.nn-login .nn-login-brand {
  display: none;
  position: relative;
  overflow: hidden;
  color: #e2e8f0;
  background:
    radial-gradient(720px 480px at 18% 18%, rgba(16, 185, 129, 0.22), transparent 60%),
    radial-gradient(520px 380px at 90% 85%, rgba(16, 185, 129, 0.08), transparent 55%),
    linear-gradient(165deg, #070d18 0%, #0b1220 45%, #0e1a16 100%);
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 2.75rem);
}

body.nn-login .nn-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 35% 35%, #000 15%, transparent 75%);
  pointer-events: none;
}

body.nn-login .nn-login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: nn-login-rise 420ms var(--nn-ease) both;
}

body.nn-login .nn-login-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

body.nn-login .nn-login-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, #12c48a, #059669);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
  flex-shrink: 0;
}

body.nn-login .nn-login-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

body.nn-login .nn-login-logo-text strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

body.nn-login .nn-login-logo-text span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  text-transform: uppercase;
}

body.nn-login .nn-login-headline {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #fff;
}

body.nn-login .nn-login-headline em {
  font-style: normal;
  color: var(--nn-accent);
}

body.nn-login .nn-login-sub {
  margin: 0.9rem 0 0;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #94a3b8;
  font-weight: 500;
}

body.nn-login .nn-platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

body.nn-login .nn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
}

body.nn-login .nn-pill .nn-ico,
body.nn-login .nn-pill svg {
  width: 14px;
  height: 14px;
  color: var(--nn-accent);
}

body.nn-login .nn-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
}

body.nn-login .nn-feature {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

body.nn-login .nn-feature-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: var(--nn-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.06);
}

body.nn-login .nn-feature-ico svg {
  width: 16px;
  height: 16px;
}

body.nn-login .nn-feature strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.nn-login .nn-feature p {
  margin: 0.15rem 0 0;
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.35;
}

body.nn-login .nn-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 2rem;
}

body.nn-login .nn-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
}

body.nn-login .nn-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

body.nn-login .nn-status.is-ok .nn-status-dot {
  background: var(--nn-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

body.nn-login .nn-status.is-bad .nn-status-dot {
  background: #f87171;
}

body.nn-login .nn-status.is-pending .nn-status-dot {
  background: #fbbf24;
  animation: nn-pulse 1.2s ease infinite;
}

/* ---------- Right column / floating white auth card ---------- */
body.nn-login .nn-login-shell > .nn-login-panel.nn-auth-shell,
body.nn-login .nn-login-panel.nn-auth-shell {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  justify-self: center;
  align-self: center;
  width: min(440px, calc(100% - 1.5rem)) !important;
  max-width: 440px !important;
  margin: clamp(0.75rem, 3vh, 2rem) auto !important;
  padding: 1.35rem 1.35rem 1.2rem !important;
  background: var(--nn-card) !important;
  border-radius: var(--nn-radius) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.08) !important;
  animation: nn-login-rise 480ms var(--nn-ease) 40ms both;
}

body.nn-login .nn-login-mobile-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

body.nn-login .nn-login-mobile-brand .nn-login-logo-text strong {
  color: var(--nn-ink);
}

body.nn-login .nn-login-mobile-brand .nn-login-logo-text span {
  color: var(--nn-accent-deep);
}

body.nn-login .nn-login-mobile-tag {
  margin: 0.15rem 0 0;
  color: var(--nn-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

body.nn-login .nn-login-mobile-tag em {
  font-style: normal;
  color: var(--nn-accent-deep);
}

body.nn-login .nn-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  border-bottom: 1px solid var(--nn-border);
  margin-bottom: 1.1rem;
  width: 100%;
}

body.nn-login .nn-auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 160ms var(--nn-ease), border-color 160ms var(--nn-ease);
  font-family: inherit;
}

body.nn-login .nn-auth-tab .nn-ico,
body.nn-login .nn-auth-tab svg {
  width: 16px;
  height: 16px;
}

body.nn-login .nn-auth-tab.is-active {
  color: var(--nn-accent-deep);
  border-bottom-color: var(--nn-accent);
}

/* Tab visibility — keep React nodes mounted; only hide */
body.nn-login[data-nn-login-tab="pin"] .nn-account-card,
body.nn-login[data-nn-login-tab="pin"] .nn-login-legacy-header,
body.nn-login[data-nn-login-tab="pin"] .nn-login-offline-notes,
body.nn-login[data-nn-login-tab="pin"] .nn-account-only {
  display: none !important;
}

body.nn-login[data-nn-login-tab="account"] #nn-pin-slot,
body.nn-login[data-nn-login-tab="account"] #nunua-cashier-pin {
  display: none !important;
}

body.nn-login:not([data-nn-login-tab="pin"]) #nn-pin-slot,
body.nn-login:not([data-nn-login-tab="pin"]) #nunua-cashier-pin {
  display: none !important;
}

body.nn-login[data-nn-login-tab="pin"] #nn-pin-slot,
body.nn-login[data-nn-login-tab="pin"] #nunua-cashier-pin {
  display: block !important;
}

/* Flatten nested React/PIN cards inside white shell */
body.nn-login .nn-auth-shell .card,
body.nn-login .nn-auth-shell #nunua-cashier-pin,
body.nn-login .nn-login-panel .card,
body.nn-login .nn-login-panel #nunua-cashier-pin {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  border-radius: 0 !important;
}

body.nn-login .nn-login-legacy-header {
  text-align: left !important;
  margin: 0 0 0.85rem !important;
}

body.nn-login .nn-login-legacy-header h1 {
  display: none !important;
}

body.nn-login .nn-login-legacy-header > p.text-gray-500 {
  display: none !important;
}

body.nn-login .nn-login-legacy-header .text-yellow-600 {
  display: inline-block;
  color: #b45309 !important;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem !important;
  font-weight: 600;
}

/* Mode toggle */
body.nn-login .nn-mode-toggle,
body.nn-login .card > .flex.mb-6.bg-gray-100 {
  background: #f1f5f9 !important;
  border-radius: 14px !important;
  padding: 4px !important;
  gap: 4px;
  margin-bottom: 1.1rem !important;
}

body.nn-login .nn-mode-toggle button,
body.nn-login .card > .flex.mb-6.bg-gray-100 > button,
body.nn-login .nn-mode-btn {
  border-radius: 11px !important;
  font-weight: 700 !important;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #64748b !important;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  flex: 1;
  transition: background 160ms var(--nn-ease), color 160ms var(--nn-ease), box-shadow 160ms var(--nn-ease);
}

body.nn-login .nn-mode-toggle button.bg-white,
body.nn-login .card > .flex.mb-6.bg-gray-100 > button.bg-white,
body.nn-login .nn-mode-btn.is-active,
body.nn-login .nn-mode-toggle button.is-active {
  background: #fff !important;
  color: var(--nn-accent-deep) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

body.nn-login .nn-mode-toggle button.bg-white svg,
body.nn-login .nn-mode-btn.is-active svg,
body.nn-login .nn-mode-toggle button.is-active svg {
  color: var(--nn-accent-deep);
}

body.nn-login .nn-mode-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.8rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}

/* Fields */
body.nn-login .label {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: var(--nn-ink-soft) !important;
  margin-bottom: 0.4rem !important;
}

body.nn-login .nn-field-ready {
  position: relative;
}

body.nn-login .nn-field-icon .input.nn-has-ico,
body.nn-login .nn-field-icon input.input {
  padding-left: 2.55rem !important;
}

body.nn-login .nn-field-password input.input {
  padding-right: 2.7rem !important;
}

body.nn-login .nn-field-ico {
  position: absolute;
  left: 0.85rem;
  /* sit in the vertical center of the input (below label) */
  bottom: 16px;
  color: #94a3b8;
  pointer-events: none;
  display: inline-flex;
  z-index: 1;
}

body.nn-login .nn-field-ico svg {
  width: 17px;
  height: 17px;
}

body.nn-login .nn-eye-btn {
  position: absolute;
  right: 0.35rem;
  bottom: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  z-index: 1;
}

body.nn-login .nn-eye-btn:hover {
  color: var(--nn-ink);
  background: #f8fafc;
}

body.nn-login .input {
  min-height: 50px;
  border-radius: 14px !important;
  border: 1.5px solid #dbe3ea !important;
  background: #fff !important;
  font-size: 1rem !important;
  color: var(--nn-ink) !important;
  padding: 0.75rem 0.95rem !important;
  transition: border-color 180ms var(--nn-ease), box-shadow 180ms var(--nn-ease) !important;
  font-family: inherit;
}

body.nn-login .input::placeholder {
  color: #94a3b8 !important;
}

body.nn-login .input:hover {
  border-color: #c5d0d9 !important;
}

body.nn-login .input:focus {
  outline: none !important;
  border-color: rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 0 0 3px var(--nn-accent-soft) !important;
}

body.nn-login .nn-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 0.35rem;
}

body.nn-login .nn-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--nn-ink-soft);
  cursor: pointer;
  user-select: none;
}

body.nn-login .nn-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--nn-accent-deep);
}

body.nn-login .nn-forgot {
  color: var(--nn-accent-deep);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

body.nn-login .nn-forgot:hover {
  text-decoration: underline;
}

/* Primary CTA — dark with emerald accent edge */
body.nn-login form .btn.btn-primary.w-full,
body.nn-login .nn-signin-btn {
  min-height: 52px;
  margin-top: 0.35rem;
  border-radius: 14px !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #152033 0%, #0b1220 100%) !important;
  border: 1px solid #0b1220 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 22px rgba(15, 23, 42, 0.18),
    4px 0 0 0 var(--nn-accent) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 160ms var(--nn-ease), box-shadow 160ms var(--nn-ease) !important;
}

body.nn-login .nn-signin-btn .nn-cta-arrow {
  display: inline-flex;
  margin-left: 0.15rem;
}

body.nn-login .nn-signin-btn .nn-cta-arrow svg {
  width: 18px;
  height: 18px;
}

body.nn-login form .btn.btn-primary.w-full:hover:not(:disabled),
body.nn-login .nn-signin-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 14px 28px rgba(15, 23, 42, 0.22),
    4px 0 0 0 #34d399 !important;
}

body.nn-login form .btn.btn-primary.w-full:active:not(:disabled),
body.nn-login .nn-signin-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.995);
}

body.nn-login form .btn.btn-primary.w-full:disabled {
  opacity: 0.72;
  cursor: wait;
}

body.nn-login .nn-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0.9rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
}

body.nn-login .nn-divider::before,
body.nn-login .nn-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nn-border);
}

body.nn-login .nn-secondary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

body.nn-login .nn-sec-btn {
  min-height: 46px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--nn-ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 160ms var(--nn-ease), background 160ms var(--nn-ease), transform 160ms var(--nn-ease);
}

body.nn-login .nn-sec-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

body.nn-login .nn-sec-create {
  color: var(--nn-accent-deep);
}
body.nn-login .nn-sec-create svg {
  color: var(--nn-accent-deep);
}
body.nn-login .nn-sec-demo svg {
  color: #2563eb;
}
body.nn-login .nn-sec-upgrade {
  color: var(--nn-accent-deep, #047857);
}
body.nn-login .nn-sec-upgrade svg {
  color: #059669;
}
body.nn-login .nn-sec-download svg {
  color: #7c3aed;
}

body.nn-login .nn-trust-banner {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

body.nn-login .nn-trust-ico {
  color: var(--nn-accent-deep);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

body.nn-login .nn-trust-banner p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
}

body.nn-login .nn-trust-banner strong {
  font-weight: 800;
}

body.nn-login .nn-login-offline-notes {
  margin-top: 0.85rem !important;
  text-align: left !important;
  color: #64748b !important;
  font-size: 0.75rem !important;
  line-height: 1.4;
}

body.nn-login .text-green-600 {
  color: var(--nn-accent-deep) !important;
  font-weight: 600;
}

body.nn-login .text-red-400 {
  color: #dc2626 !important;
}

/* PIN embedded */
body.nn-login #nunua-cashier-pin.nn-pin-embedded h2.nn-pin-title {
  font-size: 1.05rem !important;
  font-weight: 750 !important;
  color: var(--nn-ink) !important;
  margin: 0 0 0.25rem !important;
}

body.nn-login #nunua-cashier-pin.nn-pin-embedded > p {
  font-size: 0.84rem !important;
  color: var(--nn-muted) !important;
  margin: 0 0 1rem !important;
}

body.nn-login #nunua-cashier-pin .nnp-pin-tabs {
  background: #f1f5f9 !important;
  border-radius: 14px !important;
  padding: 4px !important;
  margin-bottom: 1rem !important;
  gap: 4px;
  display: flex;
}

body.nn-login #nunua-cashier-pin .nnp-pin-tabs button {
  border-radius: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  min-height: 42px;
  flex: 1;
}

body.nn-login #nunua-cashier-pin .nnp-pin-tabs button.active {
  background: #fff !important;
  color: var(--nn-accent-deep) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

body.nn-login #nunua-cashier-pin .nnp-pin-field input {
  min-height: 50px;
  border-radius: 14px !important;
  border: 1.5px solid #dbe3ea !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.2em;
  font-weight: 700;
}

body.nn-login #nunua-cashier-pin .nnp-pin-field input:focus {
  border-color: rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 0 0 3px var(--nn-accent-soft) !important;
}

body.nn-login #nunua-cashier-pin .nnp-pin-submit {
  min-height: 50px;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #152033 0%, #0b1220 100%) !important;
  font-weight: 750 !important;
  box-shadow: 4px 0 0 0 var(--nn-accent) !important;
}

body.nn-login #nunua-cashier-pin [data-pin-message] {
  font-weight: 600;
}

/* Page footer */
body.nn-login .nn-login-page-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 0.85rem 1.25rem;
  margin-top: auto;
}

body.nn-login .nn-login-page-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

body.nn-login .nn-footer-brand {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 500;
  max-width: 46rem;
}

body.nn-login .nn-footer-brand svg {
  color: var(--nn-accent-deep);
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 16px;
  height: 16px;
}

body.nn-login .nn-footer-copy {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Desktop split ---------- */
@media (min-width: 960px) {
  body.nn-login .nn-login-shell,
  body.nn-login .min-h-screen.flex.items-center.justify-center {
    grid-template-columns: minmax(340px, 1.12fr) minmax(380px, 0.95fr) !important;
    min-height: calc(100vh - 58px) !important;
    min-height: calc(100dvh - 58px) !important;
  }

  body.nn-login .nn-login-brand {
    display: flex !important;
    flex-direction: column;
  }

  body.nn-login .nn-login-mobile-brand {
    display: none !important;
  }

  body.nn-login .nn-login-panel.nn-auth-shell {
    width: min(460px, 92%) !important;
    max-width: 460px !important;
    padding: 1.5rem 1.6rem 1.35rem !important;
    margin-top: auto;
    margin-bottom: auto;
  }

  /* Soft outer padding around the card on desktop */
  body.nn-login .nn-login-shell {
    padding-right: clamp(0.75rem, 2vw, 1.5rem);
    background: transparent;
  }

  body.nn-login .nn-login-shell > .nn-login-panel.nn-auth-shell {
    /* card is the panel; right grid cell needs a centering host.
       Use the panel's own margin:auto inside the grid cell. */
    justify-self: center;
    align-self: center;
  }

  body.nn-login .nn-secondary-actions {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 959px) {
  body.nn-login .nn-login-brand {
    display: none !important;
  }

  body.nn-login .nn-login-panel,
  body.nn-login .min-h-screen > .w-full.max-w-md {
    padding-top: clamp(1.25rem, 5vh, 2rem) !important;
    padding-bottom: 1.25rem !important;
  }

  body.nn-login .nn-login-panel.nn-auth-shell {
    border-radius: 22px;
    max-width: 440px;
  }

  body.nn-login .nn-auth-tab {
    font-size: 0.84rem;
    min-height: 48px;
  }

  body.nn-login .nn-sec-btn,
  body.nn-login .nn-signin-btn,
  body.nn-login form .btn.btn-primary.w-full,
  body.nn-login .input,
  body.nn-login #nunua-cashier-pin .nnp-pin-submit,
  body.nn-login #nunua-cashier-pin .nnp-pin-field input {
    min-height: 50px;
  }

  body.nn-login .nn-footer-copy {
    white-space: normal;
  }
}

@media (min-width: 960px) and (max-height: 820px) {
  body.nn-login .nn-feature-grid {
    gap: 0.55rem 0.85rem;
    margin-top: 1.1rem;
  }

  body.nn-login .nn-feature p {
    display: none;
  }

  body.nn-login .nn-login-headline {
    font-size: 2.1rem;
  }
}

@keyframes nn-login-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nn-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nn-login .nn-login-brand-inner,
  body.nn-login .nn-login-panel,
  body.nn-login form .btn.btn-primary.w-full,
  body.nn-login .nn-status.is-pending .nn-status-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus visibility */
body.nn-login .nn-auth-tab:focus-visible,
body.nn-login .nn-sec-btn:focus-visible,
body.nn-login .nn-eye-btn:focus-visible,
body.nn-login .nn-forgot:focus-visible,
body.nn-login .nn-mode-btn:focus-visible {
  outline: 2px solid var(--nn-accent);
  outline-offset: 2px;
}

/* NN_POS_KIOSK_ARCH_v1 */
body.nn-login .nn-auth-tabs,
body.nn-login #nn-pin-slot,
body.nn-login #nunua-cashier-pin,
body.nn-login-account-only .nn-auth-tabs,
body.nn-login-account-only #nn-pin-slot,
body.nn-login-account-only #nunua-cashier-pin{display:none!important;}
body.nn-login[data-nn-login-tab="pin"] .nn-account-card,
body.nn-login[data-nn-login-tab="pin"] .nn-login-legacy-header,
body.nn-login[data-nn-login-tab="pin"] .nn-login-offline-notes,
body.nn-login[data-nn-login-tab="pin"] .nn-account-only{display:block!important;}
