/*
 * All-Involve Auth: password forms ([app_auth_login_form], [app_auth_signup_form],
 * [app_auth_lost_password_form]).
 *
 * The form fills whatever box it's put in and takes its font from the page. To restyle it from
 * Bricks, override the custom properties below on .app-auth-form (or on a wrapper), e.g.
 *   .app-auth-form { --aaf-accent: #f0007c; --aaf-radius: 12px; }
 *
 * Every control selector starts with .app-auth-form so it outranks the theme's bare
 * `input`, `button` and `label` rules.
 */

.app-auth-form {
	/* Brand: follows the site's purple when it's defined. */
	--aaf-accent: var(--gm-purple, #514dff);
	--aaf-on-accent: #ffffff;
	/* Fixed, not the page's text colour: the forms sit on a light card inside dark sections. */
	--aaf-text: #1c1b33;                    /* remember me, terms, headings */
	--aaf-muted: #4b4a66;                   /* hints, helper lines */
	--aaf-input-text: var(--aaf-accent);    /* what the visitor types */
	--aaf-soft: var(--aaf-accent);          /* the light, thin lines: hints, remember me, forgot, terms */
	--aaf-soft-weight: 300;
	--aaf-icon: color-mix(in srgb, var(--aaf-accent) 55%, #fff); /* @ and lock at rest; full purple while focused */

	/* Derived from the two above (static fallbacks for old browsers are further down). */
	--aaf-accent-ink: color-mix(in srgb, var(--aaf-accent) 78%, #000);
	--aaf-field: color-mix(in srgb, var(--aaf-accent) 11%, #fff);
	--aaf-field-hover: color-mix(in srgb, var(--aaf-accent) 15%, #fff);
	--aaf-line: color-mix(in srgb, var(--aaf-accent) 42%, #fff);
	--aaf-ring: color-mix(in srgb, var(--aaf-accent) 24%, transparent);

	--aaf-error: #c2183f;
	--aaf-error-bg: #fdecef;
	--aaf-warn: #a85d00;
	--aaf-ok: #0f7a47;
	--aaf-ok-bg: #e6f5ec;

	--aaf-radius: 4px;
	--aaf-width: 90%;                       /* share of the box the form fills; 100% = edge to edge */
	--aaf-field-height: 58px;
	--aaf-gap: 14px;
	--aaf-ease: cubic-bezier(0.22, 1, 0.36, 1);

	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: var(--aaf-gap);
	box-sizing: border-box;
	width: var(--aaf-width);
	max-width: 100%;
	margin: 0 auto;
	color: var(--aaf-text);
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
}

@supports not (color: color-mix(in srgb, red, blue)) {
	.app-auth-form {
		--aaf-accent-ink: #3f3cc7;
		--aaf-field: #ecebff;
		--aaf-field-hover: #e6e5ff;
		--aaf-line: #b6b4ff;
		--aaf-ring: rgba(81, 77, 255, 0.24);
		--aaf-icon: #9e9cff;
	}
}

.app-auth-form *,
.app-auth-form *::before,
.app-auth-form *::after {
	box-sizing: border-box;
}

.app-auth-form [hidden] {
	display: none !important;
}

/* ---------- Alert (server message or the script's own) ---------- */

.app-auth-form .app-auth-form__alert:empty {
	display: none;
}

.app-auth-form .app-auth-msg {
	margin: 0;
	padding: 11px 14px;
	border-radius: var(--aaf-radius);
	font-size: 14px;
	line-height: 1.45;
	animation: app-auth-rise 0.28s var(--aaf-ease);
}

.app-auth-form .app-auth-msg--error {
	border-color: color-mix(in srgb, var(--aaf-error) 35%, #fff);
	background: var(--aaf-error-bg);
	color: var(--aaf-error);
}

.app-auth-form .app-auth-msg--success {
	border-color: color-mix(in srgb, var(--aaf-ok) 35%, #fff);
	background: var(--aaf-ok-bg);
	color: var(--aaf-ok);
}

.app-auth-form .app-auth-msg--info {
	border-color: var(--aaf-line);
	background: var(--aaf-field);
	color: var(--aaf-accent-ink);
}

/* ---------- Fields ---------- */

.app-auth-form .app-auth-form__pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--aaf-gap);
	align-items: start;
}

@container (min-width: 440px) {
	.app-auth-form .app-auth-form__pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.app-auth-form .app-auth-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.app-auth-form .app-auth-field__box {
	position: relative;
	display: block;
}

.app-auth-form .app-auth-field__input {
	display: block;
	width: 100%;
	height: var(--aaf-field-height);
	margin: 0;
	padding: 25px 14px 7px;
	border: 1px solid var(--aaf-line);
	border-radius: var(--aaf-radius);
	background: var(--aaf-field);
	box-shadow: none;
	color: var(--aaf-input-text);
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming in on focus */
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	outline: 0;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.app-auth-form .app-auth-field__input::placeholder {
	color: transparent;
}

.app-auth-form .app-auth-field__input:hover {
	background: var(--aaf-field-hover);
}

.app-auth-form .app-auth-field__input:focus {
	border-color: var(--aaf-accent);
	background: #fff;
	box-shadow: 0 0 0 3px var(--aaf-ring);
}

/* Keep browser autofill on-brand instead of yellow/blue. */
.app-auth-form .app-auth-field__input:-webkit-autofill,
.app-auth-form .app-auth-field__input:-webkit-autofill:hover,
.app-auth-form .app-auth-field__input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--aaf-input-text);
	box-shadow: 0 0 0 100px var(--aaf-field) inset;
	caret-color: var(--aaf-input-text);
}

.app-auth-form .app-auth-field__input:-webkit-autofill:focus {
	box-shadow: 0 0 0 100px #fff inset, 0 0 0 3px var(--aaf-ring);
}

/* Room for the trailing icon button. */
.app-auth-form .app-auth-field--password .app-auth-field__input,
.app-auth-form .app-auth-field__state ~ .app-auth-field__input,
.app-auth-form .app-auth-field__box:has(.app-auth-field__state) .app-auth-field__input {
	padding-right: 46px;
}

/* Leading mark (@ on username/email, lock on password). */
.app-auth-form .app-auth-field__icon {
	position: absolute;
	top: 50%;
	left: 14px;
	width: 20px;
	height: 20px;
	color: var(--aaf-icon);
	transform: translateY(-50%);
	pointer-events: none;
	transition: color 0.15s ease;
}

.app-auth-form .app-auth-field__input:focus ~ .app-auth-field__icon {
	color: var(--aaf-accent);
}

.app-auth-form .app-auth-field.is-invalid .app-auth-field__icon {
	color: var(--aaf-error);
}

.app-auth-form .app-auth-field--icon .app-auth-field__input {
	padding-left: 44px;
}

.app-auth-form .app-auth-field--icon .app-auth-field__label {
	left: 45px;
}

/* The label sits in the field like a placeholder and moves up once there's focus or a value. */
.app-auth-form .app-auth-field__label {
	position: absolute;
	top: 0;
	left: 15px;
	right: 15px;
	display: block;
	height: var(--aaf-field-height);
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--aaf-accent-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: var(--aaf-field-height);
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.18s var(--aaf-ease), color 0.15s ease;
}

.app-auth-form .app-auth-field__input:focus ~ .app-auth-field__label,
.app-auth-form .app-auth-field__input:not(:placeholder-shown) ~ .app-auth-field__label,
.app-auth-form .app-auth-field__input:-webkit-autofill ~ .app-auth-field__label {
	transform: translateY(-9px) scale(0.72);
}

.app-auth-form .app-auth-field__input:focus ~ .app-auth-field__label {
	color: var(--aaf-accent);
}

/* Show / hide password */
.app-auth-form .app-auth-field__toggle {
	position: absolute;
	top: 50%;
	right: 5px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--aaf-radius);
	background: transparent;
	box-shadow: none;
	color: var(--aaf-accent-ink);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.app-auth-form .app-auth-field__toggle:hover {
	background: var(--aaf-ring);
	color: var(--aaf-accent);
}

.app-auth-form .app-auth-field__toggle:focus-visible {
	outline: 2px solid var(--aaf-accent);
	outline-offset: -2px;
}

.app-auth-form .app-auth-field__eye {
	display: block;
	width: 22px;
	height: 22px;
}

.app-auth-form .app-auth-field__eye-slash {
	stroke-dasharray: 23;
	stroke-dashoffset: 23;
	transition: stroke-dashoffset 0.2s ease;
}

.app-auth-form .app-auth-field__toggle[aria-pressed="true"] .app-auth-field__eye-slash {
	stroke-dashoffset: 0;
}

/* Live check state (username): checking / free / taken */
.app-auth-form .app-auth-field__state {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	pointer-events: none;
}

.app-auth-form .app-auth-field__state::before,
.app-auth-form .app-auth-field__state::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.2s var(--aaf-ease);
}

.app-auth-form .app-auth-field__state::before {
	border: 2px solid var(--aaf-line);
	border-top-color: var(--aaf-accent);
	border-radius: 50%;
}

.app-auth-form .app-auth-field__state[data-state="checking"]::before {
	opacity: 1;
	animation: app-auth-spin 0.7s linear infinite;
}

.app-auth-form .app-auth-field__state::after {
	border-radius: 50%;
	background: var(--aaf-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
	transform: scale(0.5);
}

.app-auth-form .app-auth-field__state[data-state="ok"]::after {
	opacity: 1;
	transform: scale(1);
}

/* Text under a field */
.app-auth-form .app-auth-field__hint,
.app-auth-form .app-auth-field__note,
.app-auth-form .app-auth-field__error,
.app-auth-form .app-auth-field__suggest {
	margin: 0;
	padding: 0 2px;
	font-size: 14px;
	line-height: 1.4;
}

.app-auth-form .app-auth-field__hint {
	color: var(--aaf-soft);
	font-weight: var(--aaf-soft-weight);
}

/* The hint explains the rules up front; once there's an error, the error says what to fix. */
.app-auth-form .app-auth-field.is-invalid .app-auth-field__hint {
	display: none;
}

.app-auth-form .app-auth-field__note {
	color: var(--aaf-warn);
	font-weight: 500;
}

.app-auth-form .app-auth-field__error {
	color: var(--aaf-error);
	font-weight: 500;
	animation: app-auth-rise 0.22s var(--aaf-ease);
}

.app-auth-form .app-auth-field__suggest {
	color: var(--aaf-muted);
}

.app-auth-form .app-auth-field__suggest button {
	display: inline;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--aaf-accent-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.app-auth-form .app-auth-field.is-invalid .app-auth-field__input {
	border-color: var(--aaf-error);
	background: #fff;
}

.app-auth-form .app-auth-field.is-invalid .app-auth-field__input:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--aaf-error) 22%, transparent);
}

.app-auth-form .app-auth-field.is-invalid .app-auth-field__label {
	color: var(--aaf-error);
}

/* ---------- Password strength ---------- */

.app-auth-form .app-auth-meter {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 2px;
}

.app-auth-form .app-auth-meter__bars {
	display: flex;
	flex: none;
	gap: 4px;
	width: 96px;
}

.app-auth-form .app-auth-meter__bars i {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: var(--aaf-line);
	opacity: 0.55;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.app-auth-form .app-auth-meter__text {
	min-width: 0;
	color: var(--aaf-muted);
	font-size: 13.5px;
	line-height: 1.4;
}

.app-auth-form .app-auth-meter[data-score="0"] .app-auth-meter__bars i:nth-child(-n+1),
.app-auth-form .app-auth-meter[data-score="1"] .app-auth-meter__bars i:nth-child(-n+1) {
	background: var(--aaf-error);
	opacity: 1;
}

.app-auth-form .app-auth-meter[data-score="2"] .app-auth-meter__bars i:nth-child(-n+2) {
	background: var(--aaf-warn);
	opacity: 1;
}

.app-auth-form .app-auth-meter[data-score="3"] .app-auth-meter__bars i:nth-child(-n+3) {
	background: var(--aaf-accent);
	opacity: 1;
}

.app-auth-form .app-auth-meter[data-score="4"] .app-auth-meter__bars i {
	background: var(--aaf-ok);
	opacity: 1;
}

.app-auth-form .app-auth-meter[data-score="-1"] .app-auth-meter__text {
	color: var(--aaf-soft);
	font-weight: var(--aaf-soft-weight);
}

.app-auth-form .app-auth-meter[data-score="0"] .app-auth-meter__text,
.app-auth-form .app-auth-meter[data-score="1"] .app-auth-meter__text { color: var(--aaf-error); }
.app-auth-form .app-auth-meter[data-score="2"] .app-auth-meter__text { color: var(--aaf-warn); }
.app-auth-form .app-auth-meter[data-score="3"] .app-auth-meter__text { color: var(--aaf-accent-ink); }
.app-auth-form .app-auth-meter[data-score="4"] .app-auth-meter__text { color: var(--aaf-ok); }

/* ---------- Intro line (new-password step) ---------- */

.app-auth-form .app-auth-form__intro {
	margin: 0;
	color: var(--aaf-muted);
	font-size: 15px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.app-auth-form .app-auth-form__intro strong {
	color: var(--aaf-text);
	font-weight: 600;
}

/* ---------- Remember me / forgot password (the checkbox styles are under "Checkboxes") ---------- */

.app-auth-form .app-auth-form__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	font-size: 14px;
}

.app-auth-form .app-auth-form__link {
	color: var(--aaf-accent-ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.app-auth-form .app-auth-form__link:hover,
.app-auth-form .app-auth-form__link:focus-visible {
	color: var(--aaf-accent);
	text-decoration-color: currentColor;
}

.app-auth-form .app-auth-form__forgot {
	margin-left: auto;
	color: var(--aaf-soft);
	font-weight: var(--aaf-soft-weight);
}

.app-auth-form .app-auth-form__remember .app-auth-check__label,
.app-auth-form .app-auth-field--check .app-auth-check__label {
	color: var(--aaf-soft);
	font-weight: var(--aaf-soft-weight);
}

/* Links inside the terms line keep the darker, heavier purple so they read as links. */
.app-auth-form .app-auth-field--check .app-auth-form__link {
	color: var(--aaf-accent-ink);
	font-weight: 500;
	text-decoration-color: currentColor;
}

.app-auth-form .app-auth-form__remember {
	align-items: center;
}

.app-auth-form .app-auth-check__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	appearance: none;
}

.app-auth-form .app-auth-check__input:focus-visible + .app-auth-check__box {
	outline: 2px solid var(--aaf-accent);
	outline-offset: 2px;
}

/* ---------- Checkboxes (remember me, terms) ---------- */

.app-auth-form .app-auth-check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: var(--aaf-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}

.app-auth-form .app-auth-check__box {
	display: grid;
	flex: none;
	place-items: center;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1.5px solid var(--aaf-line);
	border-radius: 3px;
	background: var(--aaf-field);
	color: var(--aaf-accent);
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.app-auth-form .app-auth-check__box svg {
	display: block;
	width: 14px;
	height: 14px;
	stroke-dasharray: 16;
	stroke-dashoffset: 16;
	transition: stroke-dashoffset 0.2s ease 0.05s;
}

.app-auth-form .app-auth-check:hover .app-auth-check__box {
	border-color: var(--aaf-accent);
}

.app-auth-form .app-auth-check__input:checked + .app-auth-check__box {
	border-color: var(--aaf-accent);
	background: #fff;
}

.app-auth-form .app-auth-check__input:checked + .app-auth-check__box svg {
	stroke-dashoffset: 0;
}

.app-auth-form .app-auth-field.is-invalid .app-auth-check__box {
	border-color: var(--aaf-error);
}

/* ---------- Bot trap, Turnstile ---------- */

.app-auth-form .app-auth-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.app-auth-form .app-auth-form__captcha:empty {
	display: none;
}

/* Turnstile stays in the page but out of the layout until it actually needs a click. */
.app-auth-form .app-auth-form__captcha:not(.is-interactive) {
	height: 0;
	margin-top: calc(-1 * var(--aaf-gap));
	overflow: hidden;
}

/* Cloudflare's box is at least 300px wide. In a narrower form it's centred and allowed to
   stick out a few pixels each side instead of being cut off. */
.app-auth-form .app-auth-form__captcha.is-interactive {
	display: flex;
	justify-content: center;
	align-self: center;
	width: max(100%, 300px);
	min-height: 65px;
}

/* ---------- Submit ---------- */

.app-auth-form .app-auth-form__submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 0;
	margin: 4px 0 0;
	padding: 11px 20px;
	border: 0;
	border-radius: var(--aaf-radius);
	background: var(--aaf-accent);
	box-shadow: none;
	color: var(--aaf-on-accent);
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.app-auth-form .app-auth-form__submit:hover {
	background: var(--aaf-accent-ink);
	color: var(--aaf-on-accent);
}

.app-auth-form .app-auth-form__submit:active {
	transform: translateY(1px);
}

.app-auth-form .app-auth-form__submit:focus-visible {
	outline: 2px solid var(--aaf-accent);
	outline-offset: 3px;
}

.app-auth-form .app-auth-form__submit[disabled] {
	cursor: progress;
}

.app-auth-form .app-auth-form__spinner {
	display: none;
	flex: none;
	width: 18px;
	height: 18px;
	border: 2px solid color-mix(in srgb, var(--aaf-on-accent) 35%, transparent);
	border-top-color: var(--aaf-on-accent);
	border-radius: 50%;
	animation: app-auth-spin 0.7s linear infinite;
}

.app-auth-form.is-busy .app-auth-form__spinner {
	display: block;
}

.app-auth-form.is-busy .app-auth-form__submit,
.app-auth-form.is-busy .app-auth-form__submit:hover {
	background: var(--aaf-accent-ink);
}

.app-auth-form.is-done .app-auth-form__submit,
.app-auth-form.is-done .app-auth-form__submit:hover {
	background: var(--aaf-ok);
	cursor: default;
}

.app-auth-form.is-done .app-auth-form__submit-label::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 8px;
	vertical-align: -3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Screen-reader status line (what the button is doing). */
.app-auth-form .app-auth-form__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.app-auth-form .app-auth-form__noscript {
	margin: 0;
	color: var(--aaf-muted);
	font-size: 13px;
}

.app-auth-form .app-auth-form__noscript:empty {
	display: none;
}

/* ---------- After sign-up / already logged in ---------- */

.app-auth-form .app-auth-form__success,
.app-auth-form.app-auth-form--done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.app-auth-form .app-auth-form__success {
	padding: 8px 0 0;
	animation: app-auth-rise 0.4s var(--aaf-ease);
}

.app-auth-form .app-auth-form__tick {
	width: 64px;
	height: 64px;
	color: var(--aaf-ok);
}

.app-auth-form .app-auth-form__tick circle {
	fill: var(--aaf-ok-bg);
	stroke: currentColor;
	stroke-width: 2;
	stroke-dasharray: 190;
	stroke-dashoffset: 190;
	animation: app-auth-draw 0.6s ease-out forwards;
}

.app-auth-form .app-auth-form__tick path {
	fill: none;
	stroke: currentColor;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: app-auth-draw 0.35s ease-out 0.45s forwards;
}

.app-auth-form .app-auth-form__success-title {
	margin: 0;
	color: var(--aaf-text);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.app-auth-form .app-auth-form__success-title:focus {
	outline: 0;
}

.app-auth-form .app-auth-form__success-text,
.app-auth-form .app-auth-form__done-text {
	max-width: 44ch;
	margin: 0;
	color: var(--aaf-muted);
	font-size: 15px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.app-auth-form .app-auth-form__success-text strong,
.app-auth-form .app-auth-form__done-text strong {
	color: var(--aaf-text);
	font-weight: 600;
}

/* "Check your email": an envelope in the brand colour instead of the green tick. */
.app-auth-form .app-auth-form__tick--mail {
	color: var(--aaf-accent);
}

.app-auth-form .app-auth-form__tick--mail circle {
	fill: var(--aaf-field);
}

.app-auth-form .app-auth-form__tick--mail path {
	stroke-width: 3;
	stroke-dasharray: 130;
	stroke-dashoffset: 130;
	animation-duration: 0.6s;
}

.app-auth-form .app-auth-form__success .app-auth-form__link {
	font-size: 14px;
}

/* The Continue button fills left to right while the page waits to move on by itself. */
.app-auth-form .app-auth-form__success .app-auth-form__submit {
	overflow: hidden;
	isolation: isolate;
}

.app-auth-form .app-auth-form__success.is-waiting .app-auth-form__submit::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.18);
	transform: scaleX(0);
	transform-origin: left;
	animation: app-auth-fill var(--aaf-wait, 6s) linear forwards;
}

/* ---------- Motion ---------- */

@keyframes app-auth-spin {
	to { transform: rotate(360deg); }
}

@keyframes app-auth-rise {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

@keyframes app-auth-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes app-auth-fill {
	to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
	.app-auth-form *,
	.app-auth-form *::before,
	.app-auth-form *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
	}

	/* A spinner that doesn't spin reads as broken, so these keep turning, slowly. */
	.app-auth-form .app-auth-form__spinner,
	.app-auth-form .app-auth-field__state[data-state="checking"]::before {
		animation-duration: 1.6s !important;
	}
}
