/* ================================================================
   HARISO ADMIN — AUTH PAGES
   Standalone stylesheet for login / forgotten / reset / register /
   verify. Self-contained: no Bootstrap, no admin theme (Antonio)
   assets. Split-screen shell: brand panel left, form card right.
   Ported from the delta project (view/stylesheet/auth.css).
   ================================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
	--ns-primary:      #0e9f6e;
	--ns-primary-dark: #04785a;
	--ns-primary-light:#3ddc97;
	--ns-primary-pale: #e7f7f0;
	--ns-accent:       #ff7a2f;
	--ns-accent-soft:  #fff1e6;
	--ns-dark:         #0a1c17;
	--ns-ink-mid:      #123f31;
	--ns-text:         #20302c;
	--ns-muted:        #5c6b66;
	--ns-border:       #e4e9e7;
	--ns-bg:           #f4f6f9;
	--ns-warm:         #faf7f2;
	--ns-white:        #ffffff;

	--ns-radius:    6px;
	--ns-radius-lg: 10px;

	--ns-shadow-lg: 0 2px 14px rgba(10,28,23,0.06);
	--ns-shadow-xl: 0 24px 60px rgba(10,28,23,0.14);

	--ns-transition: 0.16s ease;
}

/* ---------- RESET ---------- */
* , *::before, *::after { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ns-text);
	background: var(--ns-bg);
}

a { color: var(--ns-primary); text-decoration: none; }
a:hover { color: var(--ns-primary-dark); }

img { max-width: 100%; }

/* ---------- SPLIT SHELL ---------- */
.ns-auth-shell {
	display: flex;
	min-height: 100vh;
}

/* Left: brand panel — deep green gradient + subtle grid. */
.ns-auth-media {
	position: relative;
	flex: 1.15 1 0;
	min-height: 100vh;
	background:
		radial-gradient(1200px 600px at 20% 10%, rgba(61,220,151,0.18) 0%, transparent 60%),
		linear-gradient(185deg, #0a1c17 0%, #0d281f 46%, #123f31 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
	color: #fff;
}
.ns-auth-media::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
	background-size: 46px 46px;
	pointer-events: none;
	mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
.ns-auth-media-center {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.ns-auth-logo-card {
	width: 300px;
	height: 96px;
	border-radius: var(--ns-radius-lg);
	background: #fff;
	border: 1px solid rgba(255,255,255,0.22);
	box-shadow: var(--ns-shadow-xl);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.ns-auth-logo-card img {
	width: 82%;
	height: 72%;
	object-fit: contain;
	display: block;
}
.ns-auth-brand-name {
	font-family: 'Sora', 'Open Sans', sans-serif;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: 0;
	color: #fff;
	text-shadow: 0 2px 16px rgba(10,28,23,0.35);
}
.ns-auth-brand-tag {
	font-size: 14px;
	color: rgba(255,255,255,0.72);
	text-align: center;
	max-width: 320px;
}

/* Right: form panel */
.ns-auth-main {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
	background: linear-gradient(180deg, var(--ns-warm) 0%, var(--ns-bg) 100%);
}
.ns-auth-main-inner {
	width: 100%;
	max-width: 420px;
}
.ns-auth-main-inner.is-wide {
	max-width: 560px;
}

/* ---------- CARD ---------- */
.ns-auth-card {
	background: var(--ns-white);
	border: 2px solid var(--ns-border);
	border-radius: var(--ns-radius-lg);
	padding: 34px;
	box-shadow: var(--ns-shadow-lg);
	width: 100%;
}

.ns-auth-title {
	font-family: 'Sora', 'Open Sans', sans-serif;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--ns-dark);
	margin: 0 0 6px;
	text-align: center;
}
.ns-auth-title::after {
	content: '';
	display: block;
	width: 44px;
	height: 2px;
	background: var(--ns-accent);
	border-radius: 999px;
	margin: 12px auto 0;
}
.ns-auth-sub {
	font-size: 14px;
	color: var(--ns-muted);
	text-align: center;
	margin: 0 0 24px;
}
.ns-auth-sub strong { color: var(--ns-text); }

/* ---------- SECTION LABEL (register) ---------- */
.ns-form-section {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
	font-family: 'Sora', 'Open Sans', sans-serif;
	margin: 22px 0 12px;
}
.ns-form-section:first-of-type { margin-top: 4px; }

/* ---------- INPUT WITH LEADING ICON + PASSWORD REVEAL ---------- */
.ns-input-wrap { position: relative; display: block; }
.ns-input-wrap > .ns-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ns-primary-dark);
	font-size: 15px;
	line-height: 1;
	pointer-events: none;
	z-index: 2;
}
.ns-input-wrap > .ns-form-control { padding-left: 40px; }
.ns-input-wrap > .ns-form-control.has-toggle { padding-right: 44px; }
.ns-input-wrap > .ns-pw-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: var(--ns-muted);
	cursor: pointer;
	border-radius: 999px;
	z-index: 2;
}
.ns-input-wrap > .ns-pw-toggle:hover { color: var(--ns-primary); }

/* ---------- FORM ---------- */
.ns-form-group { margin-bottom: 18px; }
.ns-form-row {
	display: flex;
	gap: 14px;
}
.ns-form-row > .ns-form-group { flex: 1; }
.ns-form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ns-text);
	margin-bottom: 6px;
}
.ns-form-label-link {
	float: right;
	font-weight: 400;
	font-size: 12px;
	color: var(--ns-primary);
}
.ns-form-control {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ns-text);
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: var(--ns-radius);
	outline: none;
	transition: border-color var(--ns-transition), box-shadow var(--ns-transition);
	-webkit-appearance: none;
}
.ns-form-control:focus {
	border-color: var(--ns-primary);
	box-shadow: 0 0 0 3px rgba(14,159,110,0.12);
}
.ns-form-control.has-error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.ns-form-hint {
	font-size: 12px;
	color: var(--ns-muted);
	margin-top: 4px;
}
.ns-form-hint.is-error { color: #ef4444; }

/* ---------- BUTTONS ---------- */
.ns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 700;
	font-family: 'Sora', 'Open Sans', sans-serif;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--ns-transition);
	line-height: 1.3;
	white-space: nowrap;
	text-decoration: none;
}
.ns-btn-primary {
	background: var(--ns-primary);
	color: #fff;
}
.ns-btn-primary:hover {
	transform: translateY(-2px);
	background: var(--ns-primary-dark);
	color: #fff;
}
.ns-btn-primary:active { transform: translateY(0); }
.ns-btn-ghost {
	background: transparent;
	color: var(--ns-text);
	border-color: var(--ns-border);
}
.ns-btn-ghost:hover {
	border-color: var(--ns-primary);
	color: var(--ns-primary-dark);
	background: var(--ns-primary-pale);
}
.ns-btn-block {
	width: 100%;
	padding-top: 14px;
	padding-bottom: 14px;
}
.ns-btn-disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* ---------- DIVIDER ---------- */
.ns-auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 24px 0;
}
.ns-auth-divider::before,
.ns-auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--ns-border);
}
.ns-auth-divider span {
	font-family: 'Sora', 'Open Sans', sans-serif;
	font-size: 12px;
	color: var(--ns-muted);
	white-space: nowrap;
}

/* ---------- FOOTER TEXT ---------- */
.ns-auth-footer-text {
	text-align: center;
	font-size: 14px;
	color: var(--ns-muted);
	margin-top: 20px;
}
.ns-auth-footer-text a { font-weight: 700; color: var(--ns-primary); }

/* ---------- ALERTS ---------- */
.ns-alert {
	padding: 13px 16px;
	border-radius: var(--ns-radius);
	font-size: 14px;
	margin-bottom: 20px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.ns-alert-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ns-alert-success { background: var(--ns-primary-pale); color: var(--ns-primary-dark); border: 1px solid #bfe9d6; }
.ns-alert .fa { margin-top: 3px; flex-shrink: 0; }

/* ---------- SUCCESS ICON (register success / verify) ---------- */
.ns-auth-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--ns-primary-pale);
	color: var(--ns-primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
	font-size: 26px;
}

/* ---------- CHECKBOX ROW ---------- */
.ns-check-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-bottom: 4px;
}
.ns-check-grid label {
	font-size: 13px;
	font-weight: 400;
	color: var(--ns-text);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ---------- reCAPTCHA ---------- */
.ns-recaptcha {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
	.ns-auth-shell { flex-direction: column; }
	.ns-auth-media {
		flex: none;
		min-height: 0;
		padding: 36px 24px;
	}
	.ns-auth-media-center { gap: 12px; }
	.ns-auth-logo-card { width: 240px; height: 76px; border-radius: 16px; }
	.ns-auth-brand-name { font-size: 26px; }
	.ns-auth-main { padding: 28px 16px 48px; align-items: flex-start; }
	.ns-auth-card { padding: 28px 20px; }
	.ns-form-row { flex-direction: column; gap: 0; }
}
