/* NovaNetFlow — Login page */

.nl-body {
	--nl-ink: #111;
	--nl-ink-2: #3d3d3d;
	--nl-muted: #6f6b64;
	--nl-paper: #f7f5f0;
	--nl-paper-2: #efebe3;
	--nl-dark: #0c0c0d;
	--nl-line: rgba(17, 17, 17, .14);
	--nl-sand: #d8c3a5;
	--nl-danger: #b42318;
	--nl-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--nl-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--nl-ease: cubic-bezier(.2, .7, .2, 1);
	/* Variables the shared mock/frame styles expect. */
	--hx-serif: var(--nl-serif);
	--hx-sans: var(--nl-sans);
	margin: 0;
	background: var(--nl-paper);
	color: var(--nl-ink);
	font-family: var(--nl-sans);
}
.nl-body ::selection { background: var(--nl-sand); }

.nl { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }

/* ---------- Branded panel ---------- */
.nl-aside {
	position: sticky; top: 0; height: 100vh; height: 100svh;
	overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column;
	padding: clamp(40px, 6vw, 80px);
	background: var(--nl-dark); color: #fff;
}
.admin-bar .nl-aside { top: 32px; height: calc(100vh - 32px); }
.nl-aside__glow {
	position: absolute; inset: -10%; z-index: -1; pointer-events: none;
	background:
		radial-gradient(45% 40% at 30% 25%, rgba(216, 195, 165, .22), transparent 70%),
		radial-gradient(35% 40% at 80% 75%, rgba(200, 107, 74, .18), transparent 70%),
		radial-gradient(30% 35% at 10% 85%, rgba(124, 139, 116, .16), transparent 70%);
	animation: nl-drift 16s ease-in-out infinite alternate;
}
@keyframes nl-drift { to { transform: translate3d(2%, 3%, 0) scale(1.06); } }
.nl-aside__inner { position: relative; z-index: 2; max-width: 30rem; margin-top: auto; }
.nl-aside__kicker { margin: 0 0 22px; font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.nl-aside__title {
	margin: 0; font-family: var(--nl-serif); font-weight: 300;
	font-size: clamp(3rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.04em;
	font-variation-settings: "opsz" 144;
}
.nl-aside__title em { font-style: italic; color: var(--nl-sand); }
.nl-aside__text { margin: 22px 0 0; max-width: 26em; font-size: 1.08rem; line-height: 1.6; color: rgba(255, 255, 255, .66); }

.nl-aside__stage { position: relative; height: 42%; min-height: 220px; margin: 48px calc(clamp(40px, 6vw, 80px) * -1) calc(clamp(40px, 6vw, 80px) * -1); }
.nl-frame { position: absolute; }
.nl-frame--back {
	left: 10%; bottom: -12%; width: 70%; height: 100%; opacity: .55;
	transform: rotate(-4deg);
	animation: nl-rise-back 1.4s .2s var(--nl-ease) backwards;
}
.nl-frame--front {
	right: -6%; bottom: -24%; width: 62%; height: 100%;
	transform: rotate(3deg);
	animation: nl-rise-front 1.4s .4s var(--nl-ease) backwards;
}
@keyframes nl-rise-back { from { opacity: 0; transform: translateY(80px) rotate(-8deg); } }
@keyframes nl-rise-front { from { opacity: 0; transform: translateY(100px) rotate(7deg); } }

/* Shared browser frame + mock site (subset of home.css) */
.nl .hx-frame { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6); }
.nl .hx-frame__bar { flex: none; display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 12px; background: #f1efea; }
.nl .hx-frame__dots { display: flex; gap: 5px; }
.nl .hx-frame__dots i { width: 8px; height: 8px; border-radius: 50%; background: #d6d2ca; }
.nl .hx-frame__url { flex: 1; max-width: 220px; margin: 0 auto; padding: 3px 10px; border-radius: 6px; background: #fff; font-size: .62rem; color: #8a857c; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl .hx-frame__view { flex: 1; overflow: hidden; }
.nl .hx-mock { height: 100%; display: flex; flex-direction: column; gap: 4%; padding: 0 5% 5%; background: #fbfaf7; color: #1a1a1a; font-size: clamp(6px, .75vw, 10px); }
.nl .hx-mock__nav { display: flex; align-items: center; gap: 1.6em; padding: 1.6em 0 0; }
.nl .hx-mock__nav b { font-family: var(--nl-serif); font-weight: 500; font-size: 1.35em; margin-right: auto; }
.nl .hx-mock__nav i { width: 3.2em; height: .45em; border-radius: 1em; background: currentColor; opacity: .25; }
.nl .hx-mock__nav--light { color: #fff; }
.nl .hx-mock__cart { width: 1.3em; height: 1.3em; border-radius: 50%; border: .15em solid currentColor; opacity: .5; }
.nl .hx-mock__btn { display: inline-block; width: 8em; height: 2.4em; border-radius: 2em; background: #1a1a1a; margin-top: 1.2em; }
.nl .hx-mock__hero { display: flex; flex-direction: column; justify-content: space-between; min-height: 58%; margin: 0 -5.3%; padding: 0 5% 6%; }
.nl .hx-mock__hero strong { font-family: var(--nl-serif); font-weight: 300; font-size: 4.2em; line-height: 1; color: #fff; }
.nl .hx-mock em { font-style: italic; }
.nl .hx-mock__grid { display: grid; gap: 3%; flex: 1; }
.nl .hx-mock__grid--3 { grid-template-columns: repeat(3, 1fr); }
.nl .hx-mock__grid--4 { grid-template-columns: repeat(4, 1fr); }
.nl .hx-mock__grid--4 > div { display: flex; flex-direction: column; gap: .6em; }
.nl .hx-mock__grid--4 .hx-ph { flex: 1; min-height: 6em; }
.nl .hx-mock__grid i { display: block; height: .5em; width: 80%; border-radius: 1em; background: #1a1a1a; opacity: .18; }
.nl .hx-mock__grid i.s { width: 45%; }
.nl .hx-mock__grid > span { border-radius: .4em; min-height: 6em; }
.nl .hx-mock__split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5%; min-height: 44%; }
.nl .hx-mock__copy { display: flex; flex-direction: column; justify-content: center; }
.nl .hx-mock__copy small { font-size: .85em; text-transform: uppercase; letter-spacing: .15em; opacity: .55; }
.nl .hx-mock__copy strong { font-family: var(--nl-serif); font-weight: 400; font-size: 2.6em; line-height: 1.05; margin-top: .3em; }
.nl .hx-mock__split .hx-ph { border-radius: .5em; }
.nl .hx-ph { display: block; }
.nl .hx-ph--golden { background: radial-gradient(60% 70% at 70% 30%, #f4c27a 0%, rgba(244,194,122,0) 60%), linear-gradient(170deg, #c98a4b 0%, #6c4a35 55%, #2b211c 100%); }
.nl .hx-ph--dusk   { background: radial-gradient(50% 60% at 30% 30%, #f1b9a0, transparent 70%), linear-gradient(160deg, #8f6f8f, #3a3550 70%, #1d1b29); }
.nl .hx-ph--sand   { background: radial-gradient(60% 60% at 70% 20%, #fff3dd, transparent 70%), linear-gradient(150deg, #e4d2b6, #b89c78); }
.nl .hx-ph--sage   { background: radial-gradient(60% 60% at 30% 80%, #dfe6d6, transparent 70%), linear-gradient(150deg, #9cab8f, #5e6d56); }
.nl .hx-ph--stone  { background: linear-gradient(150deg, #d9d6d0, #9e9890); }
.nl .hx-ph--rose   { background: radial-gradient(60% 60% at 70% 30%, #fbe2dc, transparent 70%), linear-gradient(150deg, #e3b3a6, #b37b6e); }
.nl .hx-ph--clay   { background: radial-gradient(45% 55% at 50% 45%, #f0d9c4 0 34%, transparent 36%), linear-gradient(150deg, #cf8f6d, #8e5440); }

/* ---------- Form side ---------- */
.nl-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 32px clamp(24px, 6vw, 88px); }
.nl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nl-brand { font-family: var(--nl-serif); font-size: 1.5rem; letter-spacing: -.02em; color: var(--nl-ink); text-decoration: none !important; }
.nl-brand__logo { max-height: 36px; width: auto; }
.nl-back { font-size: .92rem; color: var(--nl-muted); text-decoration: none !important; transition: color .2s; }
.nl-back:hover { color: var(--nl-ink); }

.nl-card { width: 100%; max-width: 420px; margin: auto; padding: 56px 0; animation: nl-in .9s .1s var(--nl-ease) backwards; }
@keyframes nl-in { from { opacity: 0; transform: translateY(20px); } }
.nl-title { margin: 0 0 10px; font-family: var(--nl-serif); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.nl-sub { margin: 0 0 36px; color: var(--nl-muted); }
.nl-sub a { color: var(--nl-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.nl-notice { margin: 0 0 24px; padding: 14px 16px; border-radius: 12px; font-size: .94rem; line-height: 1.5; }
.nl-notice--error { background: #fdf0ee; color: var(--nl-danger); border: 1px solid #f6d3cd; }
.nl-notice--ok { background: #eef3ea; color: #2f5a2a; border: 1px solid #d5e3cd; }

.nl-form { display: grid; gap: 22px; }
.nl-field label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 500; }
.nl-field__row { display: flex; justify-content: space-between; align-items: baseline; }
.nl-forgot { font-size: .86rem; color: var(--nl-muted); text-decoration: none !important; }
.nl-forgot:hover { color: var(--nl-ink); }
.nl-field input[type="text"],
.nl-field input[type="password"] {
	width: 100%; height: 54px; padding: 0 16px;
	border: 1px solid var(--nl-line); border-radius: 12px; background: #fff;
	font: 400 1rem var(--nl-sans); color: var(--nl-ink);
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
.nl-field input:hover { border-color: rgba(17, 17, 17, .3); }
.nl-field input:focus { outline: 0; border-color: var(--nl-ink); box-shadow: 0 0 0 4px rgba(17, 17, 17, .08); }
.nl-field.has-error input { border-color: var(--nl-danger); }
.nl-error { margin: 8px 0 0; font-size: .86rem; color: var(--nl-danger); }

.nl-pass { position: relative; }
.nl-pass input { padding-right: 76px !important; }
.nl-pass__toggle {
	position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
	padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
	font: 500 .84rem var(--nl-sans); color: var(--nl-muted);
}
.nl-pass__toggle:hover { background: var(--nl-paper-2); color: var(--nl-ink); }

.nl-check { display: flex; align-items: center; gap: 10px; font-size: .94rem; color: var(--nl-ink-2); cursor: pointer; user-select: none; }
.nl-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--nl-ink); }

.nl-submit {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	height: 56px; margin-top: 6px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--nl-ink); color: #fff; font: 500 1.02rem var(--nl-sans);
	transition: transform .25s var(--nl-ease), background .25s;
}
.nl-submit:hover { background: #2a2a2a; transform: translateY(-1px); }
.nl-submit:focus-visible { outline: 2px solid var(--nl-ink); outline-offset: 3px; }
.nl-submit.is-loading { opacity: .7; cursor: wait; }
.nl-submit.is-loading span:last-child { animation: nl-nudge .8s ease-in-out infinite alternate; }
@keyframes nl-nudge { to { transform: translateX(6px); } }

.nl-foot { display: flex; gap: 20px; font-size: .84rem; color: var(--nl-muted); }
.nl-foot a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.nl { grid-template-columns: 1fr; }
	.nl-aside { display: none; }
	.nl-main { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.nl *, .nl *::before, .nl *::after { animation: none !important; transition: none !important; }
}
