/* The connector's pages. Colours come from skin.css, written from the product's
   own skin when the connector is installed; these are the fallbacks. */
:root {
	--bg: #fbf8f3;
	--surface: #fffdfa;
	--border: #e6ddd0;
	--text: #33291f;
	--muted: #6e6054;
	--accent: #8a4a2f;
	--accent-soft: rgba(138, 74, 47, 0.14);
	--danger: #b3323f;
	--font-ui: Quicksand, ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", Nunito,
		"Trebuchet MS", system-ui, sans-serif;
}

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

html {
	background-color: var(--bg);
	/* Squared notebook paper: the ground every page of this product sits on. */
	background-image:
		linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
	background-size: 28px 28px;
	background-position: center top;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.card {
	width: 100%;
	max-width: 404px;
	padding: 28px 28px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow:
		0 1px 0 color-mix(in srgb, var(--text) 6%, transparent),
		0 18px 44px color-mix(in srgb, var(--text) 13%, transparent);
}

.mark {
	display: block;
	width: 132px;
	height: auto;
	margin: 0 auto 14px;
	border-radius: 12px;
}

.eyebrow {
	margin: 0 0 4px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--accent);
}

h1 {
	margin: 0 0 10px;
	text-align: center;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

.lead {
	margin: 0 0 16px;
	text-align: center;
	color: var(--muted);
	text-wrap: pretty;
}

.lead strong {
	color: var(--text);
	font-weight: 700;
}

.grants {
	margin: 0 0 20px;
	padding: 12px 14px 12px 16px;
	list-style: none;
	background: var(--accent-soft);
	border-radius: 12px;
	font-size: 14px;
}

.grants li {
	position: relative;
	padding-left: 20px;
}

.grants li + li {
	margin-top: 6px;
}

.grants li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.5em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
}

label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
}

input[type="password"] {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	font: inherit;
	font-size: 16px;
	outline: none;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}

input[type="password"]:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.error {
	margin: 10px 0 0;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--danger);
	background: color-mix(in srgb, var(--danger) 9%, transparent);
}

button {
	display: block;
	width: 100%;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	border-radius: 10px;
}

.primary {
	height: 46px;
	margin-top: 16px;
	color: #fff;
	background: var(--accent);
	border: 1px solid var(--accent);
	transition:
		filter 0.15s,
		transform 0.05s;
}

.primary:hover {
	filter: brightness(0.92);
}

.primary:active {
	transform: translateY(1px);
}

.quiet {
	height: 40px;
	margin-top: 6px;
	color: var(--muted);
	background: transparent;
	border: 1px solid transparent;
	font-weight: 600;
}

.quiet:hover {
	color: var(--text);
	background: color-mix(in srgb, var(--text) 5%, transparent);
}

button:focus-visible {
	outline: 3px solid var(--accent-soft);
	outline-offset: 2px;
	border-color: var(--accent);
}

.note {
	margin: 16px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--muted);
	text-wrap: pretty;
}

.address {
	margin: 0;
	padding: 12px 14px;
	text-align: center;
	background: var(--accent-soft);
	border-radius: 12px;
	overflow-wrap: anywhere;
}

code {
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 13.5px;
	color: var(--text);
}

@media (max-width: 420px) {
	.card {
		padding: 24px 20px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
