.auth-page {
	background: #151919 url("../images/hero-fantasy-city.png") center / cover fixed;
	isolation: isolate;
	min-height: 42rem;
	position: relative;
}

.auth-page::before {
	background: rgb(7 9 9 / 55%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

.auth-page__inner {
	display: grid;
	min-height: 42rem;
	padding-block: clamp(2rem, 6vw, 5rem);
	place-items: center;
}

.auth-panel {
	background: var(--color-paper);
	border-radius: 4px;
	box-shadow: 0 24px 65px rgb(0 0 0 / 42%);
	max-width: 33rem;
	padding: clamp(1.5rem, 4vw, 2.75rem);
	width: 100%;
}

.auth-panel__icon {
	align-items: center;
	border: 2px solid var(--color-red);
	border-radius: 50%;
	color: var(--color-red);
	display: flex;
	font-size: 0.8rem;
	font-weight: 800;
	height: 2.75rem;
	justify-content: center;
	margin: 0 auto 0.8rem;
	width: 2.75rem;
}

.auth-panel h1 {
	font-family: var(--font-display);
	font-size: clamp(1.85rem, 4vw, 2.35rem);
	font-weight: 500;
	line-height: 1.1;
	margin: 0;
	text-align: center;
}

.auth-panel__intro,
.auth-panel__alternate {
	color: #65615b;
	font-size: 0.78rem;
	text-align: center;
}

.auth-panel__intro {
	margin: 0.6rem 0 1.4rem;
}

.auth-panel__alternate {
	margin: 1.25rem 0 0;
}

.auth-panel a,
.auth-form__options a {
	color: var(--color-red-dark);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.auth-notice {
	border: 1px solid #cfc6bb;
	font-size: 0.82rem;
	line-height: 1.5;
	margin: 0 0 1.2rem;
	padding: 0.9rem 1rem;
}

.auth-notice--error {
	background: #f8e5e1;
	border-color: #bc493e;
}

.auth-notice--success {
	background: #e6f0e6;
	border-color: #567c57;
}

.auth-notice--info {
	background: var(--color-stone);
}

.auth-form {
	display: grid;
	gap: 0.9rem;
}

.auth-form > label:not(.auth-check) {
	color: #4b4843;
	display: grid;
	font-size: 0.68rem;
	font-weight: 700;
	gap: 0.35rem;
	text-transform: uppercase;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
	background: #fffdfa;
	border: 1px solid #cfc6bb;
	border-radius: 2px;
	color: var(--color-ink);
	font-size: 0.9rem;
	min-height: 2.9rem;
	padding: 0.7rem 0.8rem;
	text-transform: none;
	width: 100%;
}

.auth-form small {
	color: #77736c;
	font-size: 0.66rem;
	font-weight: 400;
	line-height: 1.4;
	text-transform: none;
}

.auth-password-field {
	display: block;
	position: relative;
}

.auth-password-field input[type="password"],
.auth-password-field input[type="text"] {
	padding-right: 4.5rem;
}

.auth-form .auth-password-toggle {
	background: transparent;
	border: 0;
	color: var(--color-red-dark);
	font-size: 0.67rem;
	height: 2.6rem;
	margin: 0;
	min-height: 0;
	padding: 0.5rem 0.75rem;
	position: absolute;
	right: 0.15rem;
	top: 50%;
	transform: translateY(-50%);
	width: auto;
}

.auth-form .auth-password-toggle:hover {
	background: transparent;
	color: var(--color-red);
}

.password-strength {
	align-items: center;
	color: #65615b;
	display: grid;
	font-size: 0.66rem;
	gap: 0.45rem;
	grid-template-columns: minmax(5rem, 1fr) auto;
	margin-top: -0.45rem;
}

.password-strength__bars {
	display: grid;
	gap: 0.25rem;
	grid-template-columns: repeat(4, 1fr);
}

.password-strength__bars i {
	background: #d8d1c8;
	height: 0.22rem;
}

.password-strength[data-state="weak"] .password-strength__bars i:first-child,
.password-strength[data-state="fair"] .password-strength__bars i:nth-child(-n+2),
.password-strength[data-state="good"] .password-strength__bars i:nth-child(-n+3),
.password-strength[data-state="strong"] .password-strength__bars i {
	background: var(--color-red-dark);
}

.password-strength strong {
	color: var(--color-ink);
	font-size: 0.65rem;
}

.auth-check {
	align-items: flex-start;
	display: flex;
	font-size: 0.74rem;
	gap: 0.55rem;
	line-height: 1.4;
}

.auth-check input {
	accent-color: var(--color-red-dark);
	flex: 0 0 auto;
	height: 1rem;
	margin-top: 0.1rem;
	width: 1rem;
}

.auth-form button {
	background: var(--color-red-dark);
	border: 0;
	border-radius: 2px;
	color: #fff;
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 700;
	margin-top: 0.25rem;
	min-height: 3rem;
	padding: 0.8rem 1rem;
	text-transform: uppercase;
	width: 100%;
}

.auth-form button:hover {
	background: var(--color-red);
}

.auth-form__options {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.72rem;
	gap: 0.8rem;
	justify-content: space-between;
}

@media (max-width: 38rem) {
	.auth-page,
	.auth-page__inner {
		min-height: 36rem;
	}

	.auth-page__inner {
		padding: 1rem;
	}

	.auth-panel {
		padding: 1.5rem 1.15rem;
	}

	.auth-form input[type="text"],
	.auth-form input[type="email"],
	.auth-form input[type="password"],
	.auth-form button {
		min-height: 3.1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.auth-page {
		background-attachment: scroll;
	}
}
