/*
	Auth pages (sign in, set password) — a deliberately distinct visual
	system from the rest of the app. Grounded in the subject: a property
	business, so the palette and line art draw on surveyor's plans and
	brass door furniture rather than generic SaaS chrome.

	Token system:
	  --pa-ink        deep blueprint navy, dominant background
	  --pa-ink-2      slightly lighter navy, used for the skyline line art
	  --pa-paper      warm parchment, the form card
	  --pa-paper-line hairline rule on paper
	  --pa-brass      the single accent — buttons, focus states, the rule
	  --pa-brass-deep hover/active brass
	  --pa-ink-text   text sitting on the navy panel
	  --pa-muted-ink  secondary text on navy
	  --pa-text       text sitting on the paper card
	  --pa-muted      secondary text on paper
	  --pa-error      muted brick red, not a stock alert-red
*/

.pint-auth {
	--pa-ink: #101E2B;
	--pa-ink-2: #1B3045;
	--pa-paper: #F3EFE4;
	--pa-paper-line: #E2D9C4;
	--pa-brass: #B9895A;
	--pa-brass-deep: #8C6239;
	--pa-ink-text: #F3EFE4;
	--pa-muted-ink: rgba(243, 239, 228, 0.62);
	--pa-text: #17222D;
	--pa-muted: rgba(23, 34, 45, 0.58);
	--pa-error: #A23B2E;

	font-family: 'Work Sans', -apple-system, Segoe UI, sans-serif;
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
}

@media (max-width: 860px) {
	.pint-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
}

/* ---- Left: ink panel with line art + welcome copy ---- */

.pint-auth-brand {
	background: var(--pa-ink);
	color: var(--pa-ink-text);
	padding: 56px 64px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	overflow: hidden;
	min-height: 260px;
}

.pint-auth-skyline {
	width: 100%;
	max-width: 480px;
	height: auto;
	stroke: var(--pa-ink-2);
	stroke-width: 2;
	fill: none;
	stroke-linejoin: round;
	position: absolute;
	left: 64px;
	right: 64px;
	bottom: 0;
	opacity: 0.9;
}

.pint-auth-brand-copy {
	position: relative;
	z-index: 1;
	max-width: 420px;
	padding-top: 160px;
}

.pint-auth-brand-copy h1 {
	font-family: 'Spectral', Georgia, serif;
	font-weight: 600;
	font-size: 40px;
	line-height: 1.15;
	margin: 0 0 6px;
	position: relative;
	display: inline-block;
}

.pint-auth-brand-copy h1::after {
	content: '';
	display: block;
	width: 64px;
	height: 2px;
	background: var(--pa-brass);
	margin-top: 14px;
	animation: pint-rule-draw 0.6s ease-out 0.15s both;
	transform-origin: left;
}

@media (prefers-reduced-motion: reduce) {
	.pint-auth-brand-copy h1::after { animation: none; }
}

@keyframes pint-rule-draw {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

.pint-auth-brand-copy p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--pa-muted-ink);
	margin: 18px 0 0;
	max-width: 34ch;
}

/* ---- Right: paper panel with the form ---- */

.pint-auth-panel {
	background: var(--pa-paper);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
}

.pint-auth-form {
	width: 100%;
	max-width: 320px;
	display: flex;
	flex-direction: column;
}

.pint-auth-form h2 {
	font-family: 'Spectral', Georgia, serif;
	font-weight: 600;
	font-size: 22px;
	color: var(--pa-text);
	margin: 0 0 24px;
}

.pint-auth-form label {
	font-size: 13px;
	color: var(--pa-muted);
	margin: 16px 0 6px;
}

.pint-auth-form label:first-of-type { margin-top: 0; }

.pint-auth-form input[type="text"],
.pint-auth-form input[type="password"] {
	font-family: inherit;
	font-size: 15px;
	color: var(--pa-text);
	background: #fff;
	border: 1px solid var(--pa-paper-line);
	border-radius: 3px;
	padding: 11px 13px;
	transition: border-color 0.15s ease;
}

.pint-auth-form input[type="text"]:focus,
.pint-auth-form input[type="password"]:focus {
	outline: none;
	border-color: var(--pa-brass);
}

.pint-auth-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--pa-muted);
	margin-top: 18px !important;
}

.pint-auth-submit {
	margin-top: 28px;
	padding: 13px;
	border: none;
	border-radius: 3px;
	background: var(--pa-brass);
	color: #fff;
	font-family: 'Work Sans', sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

.pint-auth-submit:hover { background: var(--pa-brass-deep); }

.pint-auth-link-btn { width: 100%; max-width: 320px; }

.pint-auth-error {
	background: rgba(162, 59, 46, 0.08);
	color: var(--pa-error);
	padding: 10px 12px;
	border-radius: 3px;
	font-size: 13px;
	margin: 0 0 4px;
}

/* ---- Invite panel embedded in Manage Team (see manage.js) ---- */

.pint-invite-box {
	background: var(--pa-paper, #F3EFE4);
	border: 1px solid var(--pa-paper-line, #E2D9C4);
	border-radius: 4px;
	padding: 14px 16px;
	margin-top: 10px;
	font-size: 13px;
}

.pint-invite-box code {
	display: block;
	background: #fff;
	border: 1px solid #e2d9c4;
	padding: 8px 10px;
	border-radius: 3px;
	margin-top: 8px;
	word-break: break-all;
	font-size: 12px;
}
