.AE_AuthPage {
	min-height: calc(100vh - 5em);
	display: grid;
	place-items: center;
	padding: 2.5em 1em;
	box-sizing: border-box;
	background: var(--theme-bg);
}

.AE_AuthShell {
	width: min(100%, 30em);
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
}

.AE_AuthShell.Single {
	width: min(100%, 30em);
	grid-template-columns: 1fr;
}

.AE_AuthPanel {
	background: var(--theme-bg);
	border: 1px solid var(--theme-border);
	border-radius: 8px;
	box-shadow: 0 1em 2.5em rgba(20, 38, 48, 0.12);
	padding: 1.6em;
	box-sizing: border-box;
}

.AE_AuthBrand {
	display: flex;
	align-items: center;
	gap: 0.9em;
	margin-bottom: 1.35em;
}

.AE_AuthLanguageBar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.45em;
	margin: -0.25em 0 1em;
	font-size: 0.9em;
}

.AE_AuthLanguageBar label {
	color: var(--theme-c-d);
}

.AE_AuthLanguageBar select {
	min-height: 2.2em;
	border: 1px solid var(--theme-border);
	border-radius: 6px;
	background: var(--theme-bg);
	color: var(--theme-c);
	font: inherit;
	padding: 0.25em 1.8em 0.25em 0.55em;
}

.AE_AuthBrandIcon {
	width: 3.1em;
	height: 3.1em;
	flex: 0 0 3.1em;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: color-mix(in srgb, var(--theme-primarybg) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--theme-primarybg) 22%, transparent);
}

.AE_AuthBrandIcon img {
	width: 1.85em;
	height: 1.85em;
	object-fit: contain;
}

.AE_AuthBrand h1 {
	font-size: 1.55em;
	line-height: 1.1;
	margin: 0;
	letter-spacing: 0;
	color: color-mix(in srgb, var(--theme-c) 92%, black);
}

.AE_AuthBrand h1 span:last-child {
	color: var(--theme-primaryc);
}

.AE_AuthBrand p {
	margin: 0.25em 0 0;
	color: var(--theme-c-d);
	font-size: 0.88em;
	line-height: 1.35;
}

.AE_AuthForm {
	display: flex;
	flex-direction: column;
	gap: 0.95em;
}

.AE_AuthField {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	font-weight: 600;
}

.AE_AuthField span {
	font-size: 0.92em;
}

.AE_AuthField input {
	width: 100%;
	min-height: 2.8em;
	box-sizing: border-box;
	border: 1px solid var(--theme-border);
	border-radius: 6px;
	background: var(--theme-bg);
	color: var(--theme-c);
	font: inherit;
	padding: 0.55em 0.7em;
}

.AE_AuthField input:focus {
	outline: 2px solid color-mix(in srgb, var(--theme-primarybg) 30%, transparent);
	border-color: var(--theme-primarybg);
}

.AE_AuthInline {
	text-align: right;
	font-size: 0.92em;
}

.AE_AuthInline a,
.AE_AuthSecondaryLink {
	color: var(--theme-primaryc);
	text-decoration: none;
}

.AE_AuthInline a:hover,
.AE_AuthSecondaryLink:hover {
	text-decoration: underline;
}

.AE_AuthStatus {
	display: none;
	border-radius: 6px;
	padding: 0.75em 0.85em;
	line-height: 1.35;
	background: color-mix(in srgb, var(--theme-primarybg) 9%, transparent);
	border: 1px solid color-mix(in srgb, var(--theme-primarybg) 22%, transparent);
	color: var(--theme-c);
}

.AE_AuthStatus:not(:empty),
.AE_AuthStatus.Visible {
	display: block;
}

.AE_AuthStatus.Error {
	background: rgba(184, 55, 55, 0.10);
	border-color: rgba(184, 55, 55, 0.28);
	color: #9c2727;
}

.AE_AuthStatus.Success {
	background: rgba(46, 133, 85, 0.10);
	border-color: rgba(46, 133, 85, 0.25);
	color: #1f6d42;
}

.AE_AuthPrimary {
	min-height: 2.9em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	border: none;
	border-radius: 6px;
	background: var(--theme-primarybg);
	color: var(--theme-primarybg-c);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	padding: 0 1em;
}

.AE_AuthPrimary img {
	width: 1.2em;
	height: 1.2em;
	filter: brightness(0) invert(1);
}

.AE_AuthPrimary:disabled {
	opacity: 0.62;
	cursor: default;
}

.AE_AuthSecondaryLink {
	display: inline-block;
	align-self: center;
	margin-top: 0.2em;
	font-size: 0.95em;
}

@media (max-width: 760px) {
	.AE_AuthPage {
		padding: 1.25em 0.8em;
	}

	.AE_AuthShell {
		width: min(100%, 30em);
	}
}
