.am-auth-page {
	background: var(--am-bg);
}

.am-auth {
	display: flex;
	justify-content: center;
	padding: 1.5rem var(--am-gutter) 4rem;
}

.am-auth__card {
	box-sizing: border-box;
	width: min(100%, 26rem);
	padding: 1.75rem 1.35rem 1.75rem;
	border: 1px solid var(--am-border);
	border-radius: var(--am-card-radius);
	background: var(--am-surface);
}

.am-auth__brand {
	margin-bottom: 1.25rem;
}

.am-auth__card h1 {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading), system-ui, sans-serif;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.am-auth__lede,
.am-auth__switch {
	margin: 0.5rem 0 0;
	color: var(--am-muted);
	font-size: 0.875rem;
}

.am-auth__switch a {
	color: var(--am-primary);
	font-weight: 600;
}

.am-auth__notice {
	margin: 1rem 0 0;
	padding: 0.75rem 0.85rem;
	border-radius: 12px;
	background: #fde8e6;
	color: #b42318;
	font-size: 0.875rem;
}

.am-auth__form {
	display: grid;
	gap: 0.85rem;
	margin-top: 1.25rem;
}

.am-auth__pair {
	display: grid;
	gap: 0.85rem;
}

.am-auth__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
	font-size: 0.875rem;
	font-weight: 600;
}

.am-auth__field input,
.am-auth__field select {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0 0.85rem;
	border: 1px solid var(--am-border);
	border-radius: 12px;
	background: var(--am-surface);
	color: var(--am-ink);
	font: inherit;
	font-weight: 400;
}

.am-auth__check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	color: var(--am-ink);
	font-size: 0.875rem;
	font-weight: 400;
}

.am-auth__check input {
	margin-top: 0.2rem;
}

.am-auth__check a {
	color: var(--am-primary);
	font-weight: 600;
}

.am-auth__submit {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
}

.am-auth__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (min-width: 640px) {
	.am-auth {
		padding-block: 3rem 5rem;
	}

	.am-auth__card {
		padding: 2rem 1.75rem;
	}

	.am-auth__pair {
		grid-template-columns: 1fr 1fr;
	}
}
