:root {
	color-scheme: light;
	font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
	font-synthesis: none;
	--auth-ink: #0b3034;
	--auth-ink-soft: #35575a;
	--auth-muted: #728487;
	--auth-page: #f2f7f8;
	--auth-surface: #ffffff;
	--auth-border: #dce8ea;
	--auth-accent: #0b373b;
	--auth-accent-hover: #082b2e;
	--auth-accent-soft: #dff1f7;
	--auth-danger: #8b3434;
	--auth-danger-soft: #fff0ef;
}

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

html {
	min-width: 20rem;
	background: var(--auth-page);
	text-size-adjust: 100%;
}

.auth-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	color: var(--auth-ink);
	background:
		radial-gradient(circle at 15% 5%, rgb(202 232 240 / 80%), transparent 28rem),
		radial-gradient(circle at 90% 95%, rgb(223 241 247 / 75%), transparent 24rem),
		var(--auth-page);
	font-size: 1rem;
	line-height: 1.5;
}

.auth-body button,
.auth-body input {
	font: inherit;
}

.auth-body button,
.auth-body a {
	-webkit-tap-highlight-color: transparent;
}

.auth-body :focus-visible {
	outline: 0.2rem solid #4d9db1;
	outline-offset: 0.2rem;
}

.auth-body ::selection {
	color: var(--auth-surface);
	background: var(--auth-accent);
}

.auth-page {
	display: grid;
	place-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: clamp(1rem, 4vw, 3rem);
}

.auth-shell {
	display: grid;
	grid-template-columns: minmax(15rem, 0.82fr) minmax(22rem, 1fr);
	width: min(100%, 58rem);
	min-height: 35rem;
	overflow: hidden;
	border: 1px solid rgb(220 232 234 / 90%);
	border-radius: 2rem;
	background: rgb(255 255 255 / 88%);
	box-shadow: 0 24px 70px rgb(29 66 72 / 14%);
}

.auth-intro {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(2rem, 5vw, 3.25rem);
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 85% 10%, rgb(134 197 214 / 40%), transparent 13rem),
		linear-gradient(145deg, #0d4247, var(--auth-accent));
}

.auth-intro::after {
	position: absolute;
	right: -7rem;
	bottom: -9rem;
	width: 20rem;
	height: 20rem;
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: 50%;
	box-shadow:
		0 0 0 3rem rgb(255 255 255 / 3%),
		0 0 0 6rem rgb(255 255 255 / 2%);
	content: "";
}

.auth-wordmark {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.55rem;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.035em;
	text-decoration: none;
}

.auth-wordmark span {
	color: #9bd3df;
	font-size: 0.7rem;
}

.auth-intro__copy {
	position: relative;
	z-index: 1;
}

.auth-intro__eyebrow,
.auth-kicker {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.auth-intro__eyebrow {
	color: #a8d9e3;
}

.auth-intro__statement {
	max-width: 17rem;
	margin: 0;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 750;
	line-height: 1.18;
	letter-spacing: -0.035em;
}

.auth-intro__mark {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.7rem;
	height: 2.7rem;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 50%;
	color: #c8e9ef;
	background: rgb(255 255 255 / 7%);
}

.auth-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2rem, 6vw, 4rem);
	background: rgb(255 255 255 / 92%);
}

.auth-card h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.auth-card p {
	margin: 0 0 1rem;
}

.auth-kicker {
	color: #4d8994;
}

.auth-lead {
	max-width: 29rem;
	color: var(--auth-ink-soft);
	font-size: 1.04rem;
}

.auth-note {
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--auth-border);
	border-radius: 0.9rem;
	color: var(--auth-muted);
	background: #f8fbfb;
	font-size: 0.88rem;
}

.auth-note--error {
	border-color: #e8b9b5;
	color: var(--auth-danger);
	background: var(--auth-danger-soft);
}

.auth-form {
	display: grid;
	gap: 1rem;
	margin-top: 1.35rem;
}

.auth-field {
	display: block;
	color: var(--auth-ink-soft);
	font-size: 0.86rem;
	font-weight: 700;
}

.auth-field input {
	display: block;
	width: 100%;
	min-height: 3.2rem;
	margin-top: 0.45rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #cfdee1;
	border-radius: 0.85rem;
	color: var(--auth-ink);
	background: var(--auth-surface);
	font-size: 1rem;
	font-weight: 450;
	box-shadow: 0 1px 0 rgb(11 48 52 / 2%);
}

.auth-field input:hover {
	border-color: #abc7cc;
}

.auth-field input:focus {
	border-color: #5a9cab;
	outline: 0;
	box-shadow: 0 0 0 0.22rem rgb(90 156 171 / 16%);
}

.auth-code-input {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.22em;
	text-align: center;
}

.auth-choice {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--auth-ink-soft);
	font-size: 0.9rem;
	font-weight: 650;
	cursor: pointer;
}

.auth-choice input {
	width: 1.05rem;
	height: 1.05rem;
	margin: 0;
	accent-color: var(--auth-accent);
}

.auth-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.35rem;
}

.auth-form .auth-actions {
	margin-top: 0.25rem;
}

.auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.15rem;
	border: 1px solid transparent;
	border-radius: 999px;
	color: #fff;
	background: var(--auth-accent);
	font-weight: 750;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 7px 18px rgb(11 55 59 / 16%);
	cursor: pointer;
}

.auth-button:hover {
	background: var(--auth-accent-hover);
}

.auth-link {
	color: var(--auth-ink-soft);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

@media (max-width: 45rem) {
	.auth-page {
		place-items: start center;
		padding: 0;
	}

	.auth-shell {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		width: 100%;
		min-height: 100vh;
		min-height: 100svh;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.auth-intro {
		min-height: 9.5rem;
		padding: 1.35rem 1.25rem 1.6rem;
	}

	.auth-intro__copy,
	.auth-intro__mark {
		display: none;
	}

	.auth-card {
		justify-content: flex-start;
		padding: clamp(2rem, 9vw, 3rem) 1.25rem 3rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.auth-button {
		transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
	}

	.auth-button:active {
		transform: translateY(1px);
	}
}
