/* Nouveau ERP web pages: sign-in, password set-up, workspace launcher.
 * Editorial look from nouveausystems.org: warm paper, ink type, faint graph-paper grid. */

:root {
	--nv-ink: #1c1916;
	--nv-ink-soft: #57514b;
	--nv-muted: #7e776f;
	--nv-paper: #fbf9f5;
	--nv-card: #ffffff;
	--nv-line: #e3ded8;
	--nv-line-soft: #eeeae3;
	--nv-danger: #9b2c1f;
	--nv-font-brand: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--nv-radius: 6px;
}

body {
	background-color: var(--nv-paper);
	background-image:
		linear-gradient(to right, rgb(28 25 22 / 0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(28 25 22 / 0.045) 1px, transparent 1px);
	background-size: 32px 32px;
	color: var(--nv-ink);
}

.nv-wordmark {
	font-family: var(--nv-font-brand);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--nv-ink);
	white-space: nowrap;
}

.nv-wordmark em {
	font-style: italic;
	margin-left: 0.2em;
}

.nv-wordmark--lg {
	font-size: 1.375rem;
}

/* ---- sign-in and set-password cards --------------------------------------------------- */

.page-card {
	background: var(--nv-card);
	border: 1px solid var(--nv-line);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgb(28 25 22 / 0.04), 0 12px 32px -18px rgb(28 25 22 / 0.18);
}

.page-card-head .app-logo {
	width: 44px;
	height: 44px;
	border-radius: 10px;
}

.page-card-head h4 {
	font-family: var(--nv-font-brand);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--nv-ink);
}

.page-card-subtitle {
	color: var(--nv-muted);
}

.page-card .btn-login,
.page-card .btn-primary,
.page-card #update {
	background: var(--nv-ink);
	border-color: var(--nv-ink);
	color: #fff;
}

.page-card .btn-login:hover,
.page-card .btn-primary:hover,
.page-card #update:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}

.nv-login-note {
	max-width: 400px;
	margin: 1.25rem auto 0;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--nv-muted);
}

.nv-powered a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- workspace launcher (/launch) ----------------------------------------------------- */

.nv-launch {
	max-width: 720px;
	margin: 0 auto;
	padding: 2rem 1rem 4rem;
}

.nv-launch__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--nv-line);
}

.nv-launch__who {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--nv-ink-soft);
	min-width: 0;
}

.nv-launch__who span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nv-launch__who a {
	color: var(--nv-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.nv-launch__body h1 {
	font-family: var(--nv-font-brand);
	font-weight: 500;
	letter-spacing: -0.025em;
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	margin: 2.5rem 0 1.5rem;
	color: var(--nv-ink);
}

.nv-orgs {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.75rem;
}

.nv-org {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.125rem;
	background: var(--nv-card);
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
}

.nv-org.is-waiting {
	background: transparent;
	border-style: dashed;
}

.nv-org__text {
	display: grid;
	gap: 0.125rem;
	min-width: 0;
}

.nv-org__name {
	font-weight: 500;
	color: var(--nv-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nv-org__host {
	font-size: 0.8125rem;
	color: var(--nv-muted);
	font-variant-numeric: tabular-nums;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nv-org__status {
	font-size: 0.8125rem;
	color: var(--nv-muted);
	white-space: nowrap;
}

.nv-org__status.is-bad {
	color: var(--nv-danger);
}

.nv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 1rem;
	border-radius: var(--nv-radius);
	background: var(--nv-ink);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.nv-btn:hover,
.nv-btn:focus-visible {
	background: #000;
	color: #fff;
	text-decoration: none;
}

.nv-btn:focus-visible,
.nv-launch__who a:focus-visible,
.nv-admin-link a:focus-visible {
	outline: 2px solid var(--nv-ink);
	outline-offset: 2px;
}

.nv-alert {
	padding: 0.75rem 1rem;
	border: 1px solid #e8c4bd;
	background: #fbf1ef;
	color: var(--nv-danger);
	border-radius: var(--nv-radius);
	font-size: 0.875rem;
}

.nv-empty {
	color: var(--nv-ink-soft);
	max-width: 52ch;
}

.nv-admin-link {
	margin-top: 2rem;
	font-size: 0.875rem;
}

.nv-admin-link a {
	color: var(--nv-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}
