/* NutraOne login / register / recover — tokens taken from the landing (home + main.css + custom.css):
   bg #111026, font Plus Jakarta Sans, gradient #4F39F6 -> #B410FA, glass white/6-10, radius 10 / 20 / 24 / 54 */
:root {
  --nx-bg: #111026;
  --nx-line: #2C2B40;
  --nx-muted: #9ca3af;
  --nx-card-muted: #A7ADC9;
  --nx-grad: linear-gradient(90deg, #4F39F6 0%, #B410FA 100%);
  --nx-grad-shadow: 0 4px 6px -4px rgba(49, 44, 133, .5), 0 10px 15px -3px rgba(49, 44, 133, .5);
}

html { background: var(--nx-bg); }
body.nx {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--nx-bg);
  color: #fff;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body.nx *, body.nx *::before, body.nx *::after { box-sizing: border-box; }
body.nx h1, body.nx input, body.nx button, body.nx label { font-family: inherit; }

/* ---------- background (same layers as landing hero) ---------- */
.nx-bg { position: absolute; inset: 0 0 auto 0; height: min(900px, 100%); overflow: hidden; pointer-events: none; z-index: 0; }
.nx-bg-curtain { position: absolute; left: 50%; top: -370px; width: 2034px; height: 1120px; max-width: none; min-width: 800px; transform: translateX(-50%); }
.nx-bg-glow { position: absolute; left: 50%; top: -1200px; max-width: none; width: 1447px; transform: translateX(calc(-50% - 160px)); }
.nx-bg-grid { position: absolute; left: 50%; top: 0; height: 100%; min-width: 1448px; max-width: none; transform: translateX(-50%); opacity: .9; }

/* ---------- nav (glass bar like landing) ---------- */
.nx-nav-wrap { width: 100%; position: relative; z-index: 5; padding: 16px 16px 0; }
.nx-nav {
  width: 100%; max-width: 1024px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 24px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.nx-logo { display: inline-flex; flex: 0 1 165px; min-width: 96px; }
.nx-logo img { display: block; width: 100%; height: auto; }
.nx-nav-link { margin-right: auto; margin-left: 24px; color: #fff; font-size: 14px; text-decoration: none; transition: color .15s; }
.nx-nav-link:hover { color: rgba(255, 255, 255, .7); }
.nx-nav-cta { display: flex; gap: 12px; }

/* ---------- buttons ---------- */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap;
  transition: opacity .15s, background-color .15s, filter .15s;
}
.nx-btn-light, .nx-btn-grad { min-width: 112px; height: 44px; padding: 0 20px; border-radius: 10px; }
.nx-btn-light { background: #fff; color: var(--nx-bg); }
.nx-btn-light:hover { background: rgba(255, 255, 255, .9); }
.nx-btn-grad { background: var(--nx-grad); color: #fff; box-shadow: var(--nx-grad-shadow); }
.nx-btn-grad:hover { opacity: .9; }
.nx-btn-light.is-active, .nx-btn-grad.is-active { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.nx-btn-hero {
  width: 100%; height: 54px; border-radius: 54px; margin-top: 8px;
  background: var(--nx-grad); color: #fff; font-size: 16px; box-shadow: var(--nx-grad-shadow);
}
.nx-btn-hero:hover { filter: brightness(1.1); }
.nx-btn:focus-visible, .nx-link:focus-visible, .nx-input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* core CSS sets a:hover/a:focus/a:active{color:#72afd2}; pin our colours in every state */
body.nx a.nx-btn-light, body.nx a.nx-btn-light:hover, body.nx a.nx-btn-light:focus, body.nx a.nx-btn-light:active, body.nx a.nx-btn-light:visited { color: var(--nx-bg); text-decoration: none; }
body.nx a.nx-btn-grad, body.nx a.nx-btn-grad:hover, body.nx a.nx-btn-grad:focus, body.nx a.nx-btn-grad:active, body.nx a.nx-btn-grad:visited { color: #fff; text-decoration: none; }
body.nx a.nx-nav-link, body.nx a.nx-nav-link:focus, body.nx a.nx-nav-link:active, body.nx a.nx-nav-link:visited { color: #fff; text-decoration: none; }
body.nx a.nx-nav-link:hover { color: rgba(255, 255, 255, .7); }
body.nx a.nx-link, body.nx a.nx-link:focus, body.nx a.nx-link:active, body.nx a.nx-link:visited { color: var(--nx-card-muted); }
body.nx a.nx-link-strong, body.nx a.nx-link-strong:focus, body.nx a.nx-link-strong:active, body.nx a.nx-link-strong:visited { color: #fff; }
body.nx a.nx-link:hover { color: #fff; }
body.nx .nx-footer-links a, body.nx .nx-footer-links a:focus, body.nx .nx-footer-links a:active, body.nx .nx-footer-links a:visited { color: var(--nx-card-muted); }
body.nx .nx-footer-links a:hover { color: #fff; }

/* ---------- layout ---------- */
.nx-main {
  position: relative; z-index: 2; flex: 1 0 auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 16px 40px;
}
.nx-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px; margin-bottom: 24px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); border-radius: 9999px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  font-size: 14px; color: rgba(255, 255, 255, .8);
}
.nx-pill-dot { width: 23px; height: 23px; border-radius: 16px; background: rgba(255, 255, 255, .10); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nx-pill-dot img { width: 12px; height: 12px; display: block; }

/* ---------- card ---------- */
.nx-card {
  width: 100%; max-width: 440px;
  padding: 36px 32px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .03) 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.js .nx-card { display: none; }
.nx-title {
  margin: 0 0 8px; text-align: center; font-size: 28px; font-weight: 700; line-height: 1.2;
  background-image: linear-gradient(180deg, #FFFFFF 30.1%, rgba(255, 255, 255, .45) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff;
}
.nx-sub { margin: 0 0 24px; text-align: center; font-size: 15px; color: var(--nx-card-muted); }

/* ---------- form ---------- */
.nx-form { margin: 0; }
.nx-field { margin-bottom: 16px; }
.nx-label { display: block; margin: 0 0 6px 2px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.nx-input-wrap { position: relative; display: block; }
.nx-input-wrap > i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--nx-muted) !important; font-size: 15px; pointer-events: none; width: 16px; text-align: center;
}
.nx-input {
  display: block; width: 100%; height: 50px; margin: 0; padding: 0 16px 0 46px;
  background: rgba(255, 255, 255, .06); color: #fff;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  font-family: inherit; font-size: 16px; line-height: 1.2; box-shadow: none;
  transition: border-color .15s, background-color .15s;
}
.nx-input::placeholder { color: #6b7280; opacity: 1; }
.nx-input:focus { outline: none; background: rgba(255, 255, 255, .09); border-color: #7C6CFA; box-shadow: 0 0 0 3px rgba(79, 57, 246, .25); }
.nx-input:-webkit-autofill, .nx-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #1c1b36 inset; transition: background-color 9999s;
}
.nx-field.has-error .nx-input, .nx-field.has-warning .nx-input { border-color: #f87171; }
.nx-field.has-error .nx-label { color: #fca5a5; }

.nx-row-end { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.nx-link { color: var(--nx-card-muted); font-size: 14px; text-decoration: none; transition: color .15s; }
.nx-link:hover { color: #fff; text-decoration: underline; }
.nx-link-strong { color: #fff; font-weight: 600; }
.nx-switch { margin: 24px 0 0; padding-top: 20px; text-align: center; font-size: 14px; color: var(--nx-card-muted); border-top: 1px solid rgba(255, 255, 255, .08); }

.nx-alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; border: 1px solid; }
.nx-alert-danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.nx-alert-success { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); color: #a7f3d0; }

.nx-captcha { margin: 4px 0 8px; height: 78px; }
.g-recaptcha { transform-origin: 0 0; }
.nx-about { width: 100%; max-width: 440px; margin-top: 20px; font-size: 13px; text-align: center; color: var(--nx-muted); }

/* ---------- footer ---------- */
.nx-footer { position: relative; z-index: 2; padding: 24px 16px 32px; text-align: center; font-size: 13px; color: #5F6368; }
.nx-footer p { margin: 0; color: #8b8fa3; }
.nx-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 12px; }
.nx-footer-links a { color: var(--nx-card-muted); text-decoration: none; }
.nx-footer-links a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .nx-nav { padding: 8px 8px 8px 16px; }
  .nx-nav-link { display: none; }
  .nx-nav-cta { margin-left: auto; gap: 8px; }
  .nx-btn-light, .nx-btn-grad { min-width: 0; height: 44px; padding: 0 16px; }
  .nx-main { padding-top: 40px; }
}
@media (max-width: 480px) {
  .nx-card { padding: 28px 20px 22px; border-radius: 20px; }
  .nx-title { font-size: 24px; }
  .nx-pill { font-size: 13px; margin-bottom: 20px; }
}
@media (max-width: 400px) {
  .g-recaptcha { transform: scale(.9); }
  .nx-captcha { height: 70px; }
}
@media (max-width: 340px) {
  .nx-nav { gap: 8px; padding-left: 12px; }
  .nx-btn-light, .nx-btn-grad { padding: 0 12px; }
  .g-recaptcha { transform: scale(.78); }
  .nx-captcha { height: 62px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ================= v3: same look as the redesigned landing (dunes, clean light, ghost sign-in) ================= */
body.nx { font-variant-ligatures: no-common-ligatures; font-feature-settings: "liga" 0, "clig" 0; }
html, body.nx { height: auto; }
.nx-bg { inset: 0; height: auto; }
.nx-bg-grid { height: 760px; opacity: .9; -webkit-mask-image: radial-gradient(70% 80% at 50% 38%, #000 20%, transparent 85%); mask-image: radial-gradient(70% 80% at 50% 38%, #000 20%, transparent 85%); }
.nx-bg-top { position: absolute; inset: 0 0 auto 0; height: 760px; background: radial-gradient(62% 70% at 50% -18%, rgba(140, 88, 255, .42) 0%, rgba(96, 70, 230, .2) 40%, rgba(96, 70, 230, .06) 62%, transparent 80%); }
.nx-dune { position: absolute; bottom: 0; width: min(46vw, 1000px); aspect-ratio: 16 / 9; background-size: cover; background-repeat: no-repeat; mix-blend-mode: lighten; opacity: .9; animation: nx-dune-in 1.6s cubic-bezier(.2, .7, .2, 1) backwards; }
.nx-dune-l { left: 0; background-position: left bottom;
  background-image: url(/skin/nutraone/img/hero/hero-left-c.jpg);
  background-image: image-set(url(/skin/nutraone/img/webp/hero-left-c.webp) type("image/webp"), url(/skin/nutraone/img/hero/hero-left-c.jpg) type("image/jpeg"));
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 100%), linear-gradient(0deg, transparent 0, #000 18%, #000 80%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 60%, transparent 100%), linear-gradient(0deg, transparent 0, #000 18%, #000 80%, transparent 100%); mask-composite: intersect; }
.nx-dune-r { right: 0; background-position: right bottom; animation-delay: .15s;
  background-image: url(/skin/nutraone/img/hero/hero-right-c.jpg);
  background-image: image-set(url(/skin/nutraone/img/webp/hero-right-c.webp) type("image/webp"), url(/skin/nutraone/img/hero/hero-right-c.jpg) type("image/jpeg"));
  -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent 100%), linear-gradient(0deg, transparent 0, #000 18%, #000 80%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(270deg, #000 60%, transparent 100%), linear-gradient(0deg, transparent 0, #000 18%, #000 80%, transparent 100%); mask-composite: intersect; }
@keyframes nx-dune-in { from { opacity: 0; transform: translateY(30px); } }

/* nav: sign in is the quiet button, sign up carries the colour (as on the landing) */
.nx-btn-light { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .3); }
.nx-btn-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); }
body.nx a.nx-btn-light, body.nx a.nx-btn-light:hover, body.nx a.nx-btn-light:focus, body.nx a.nx-btn-light:active, body.nx a.nx-btn-light:visited { color: #fff; }
.nx-btn-light.is-active, .nx-btn-grad.is-active { box-shadow: 0 0 0 2px rgba(199, 125, 255, .55); }
.nx-btn:focus-visible, .nx-link:focus-visible, .nx-nav-link:focus-visible, .nx-footer-links a:focus-visible { outline: 2px solid #C77DFF; outline-offset: 3px; }

/* card: same surface as the landing cards, with the top light line */
.nx-card { position: relative; background: linear-gradient(180deg, rgba(32, 29, 62, .92) 0%, rgba(22, 21, 42, .94) 70%); border-color: rgba(255, 255, 255, .1); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: nx-card-in .55s cubic-bezier(.2, .8, .2, 1) backwards; }
.nx-card::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(190, 120, 255, .85), rgba(47, 139, 255, .6), transparent); }
@keyframes nx-card-in { from { opacity: 0; transform: translateY(18px); } }
.nx-title { background-image: radial-gradient(60% 90% at 50% 50%, #FFFFFF 0%, #9A9AA6 100%); padding-bottom: .1em; }
.nx-sub, .nx-switch { text-wrap: balance; }
.nx-input:focus { border-color: #C77DFF; box-shadow: 0 0 0 3px rgba(170, 90, 255, .25); }
.nx-btn-hero { background: linear-gradient(110deg, #4F39F6 0%, #B410FA 25%, #4F39F6 50%, #B410FA 75%, #4F39F6 100%); background-size: 300% 100%; animation: nx-gshift 7s linear infinite; box-shadow: none; transition: transform .25s, box-shadow .25s, filter .15s; }
.nx-btn-hero:hover { transform: translateY(-2px); box-shadow: none; filter: brightness(1.12); }
@keyframes nx-gshift { to { background-position: -300% 0; } }
.nx-footer p, .nx-footer-links a { text-shadow: 0 1px 12px #111026, 0 0 4px #111026; }
.nx-footer-links a { display: inline-block; padding: 10px 0; }

@media (max-width: 767px) {
  .nx-dune { width: 84vw; opacity: .4; }
  .nx-dune-l { left: -24vw; }
  .nx-dune-r { right: -24vw; }
  .nx-footer { padding-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) { .nx-dune, .nx-card, .nx-btn-hero { animation: none !important; } }

/* v4: no soft shadows anywhere on this page */
.nx-btn-grad, .nx-btn-grad:hover { box-shadow: none; }
.nx-btn-light.is-active, .nx-btn-grad.is-active { box-shadow: 0 0 0 2px rgba(199, 125, 255, .55); }

/* v5: cleaned dune images (dark background below page colour, so no haze between the dunes); phones get the 900px files */
@media (max-width: 767px) {
  .nx-dune-l { background-image: image-set(url(/skin/nutraone/img/webp/hero-left-c-900.webp) type("image/webp"), url(/skin/nutraone/img/hero/hero-left-c.jpg) type("image/jpeg")); }
  .nx-dune-r { background-image: image-set(url(/skin/nutraone/img/webp/hero-right-c-900.webp) type("image/webp"), url(/skin/nutraone/img/hero/hero-right-c.jpg) type("image/jpeg")); }
}
/* the dunes blend (lighten) against this layer: without its own background the dark part of the image showed through as haze */
.nx-bg { background-color: #111026; }

/* v6: original logo (coloured O) in the nav */
.nx-logo { flex: 0 1 205px; }
.nx-logo img { height: auto; }
@media (max-width: 480px) { .nx-logo { flex-basis: 170px; } }
