/*
 * AH account screen (Auth\Screen): one page to log in or sign up for the store, the academy and the
 * community. Forms on an ivory ground beside a navy photo panel (desktop), or under a navy top with
 * the forms in a sheet (phones and tablets). Logical properties only (RTL and LTR). Motion is CSS
 * (entrance, panel network, floating cards) and stops under prefers-reduced-motion.
 */

:root { --ah-auth-dir: 1; }
[dir="rtl"] { --ah-auth-dir: -1; }

html { background: var(--ah-ivory); }
body.ah-auth-page {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--ah-ivory);
	color: var(--ah-ink);
	font-family: var(--ah-f-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
html[lang^="en"] body.ah-auth-page { font-family: var(--ah-f-en); }
body.ah-auth-page *,
body.ah-auth-page *::before,
body.ah-auth-page *::after { box-sizing: border-box; }
:where(body.ah-auth-page) a { color: inherit; }
body.ah-auth-page :focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 3px; border-radius: 8px; }
body.ah-auth-page .qlwapp,
body.ah-auth-page .show-password-input { display: none !important; }
.ah-auth__sr,
.ah-auth__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- frame */

.ah-auth {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
	grid-template-rows: auto 1fr;
	grid-template-areas: "bar panel" "main panel";
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: clip;
	background:
		radial-gradient(60% 40% at 0% 0%, rgba(197, 165, 114, .14), transparent 70%),
		var(--ah-grain) 0 0 / 36px 36px,
		var(--ah-ivory);
}
.ah-auth__bar {
	grid-area: bar;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 28px clamp(24px, 5vw, 72px) 0;
}
.ah-auth__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ah-navy) !important;
	font-family: var(--ah-f-display);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	direction: ltr;
}
.ah-auth__brand i { font-style: normal; color: var(--ah-gold); }
.ah-auth__logo { width: 28px; height: 28px; }
.ah-auth__tools { display: flex; align-items: center; gap: 8px; color: var(--ah-navy); }
.ah-auth__tools a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .25s, box-shadow .25s;
}
.ah-auth__tools a:hover { background: rgba(15, 27, 60, .06); }
.ah-auth__lang { background: #fff; box-shadow: 0 0 0 1px var(--ah-card-line), 0 6px 16px -10px rgba(15, 27, 60, .3); }
.ah-auth__tools .ah-auth__i { width: 18px; height: 18px; }
.ah-auth__home .ah-auth__i { transform: scaleX(var(--ah-auth-dir)); }

.ah-auth__main {
	grid-area: main;
	display: flex;
	flex-direction: column;
	padding: 8px clamp(24px, 5vw, 72px) 24px;
	min-width: 0;
}
.ah-auth__stage { flex: 1; display: grid; place-items: center; padding-block: clamp(20px, 5vh, 56px); }
.ah-auth__stage > .woocommerce { width: 100%; max-width: 440px; }
.ah-auth__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 18px;
	color: var(--ah-soft);
	font-size: 13px;
}
.ah-auth__foot a { text-decoration: none; }
.ah-auth__foot a:hover { color: var(--ah-navy); text-decoration: underline; }
.ah-auth__safe { display: inline-flex; align-items: center; gap: 6px; }
.ah-auth__safe .ah-auth__i { width: 16px; height: 16px; color: #3E8E66; }

/* line icons */
.ah-auth__i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- panel */

.ah-auth__panel {
	grid-area: panel;
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100dvh;
	padding: 16px;
	padding-inline-start: 0;
}
.ah-auth__box {
	position: relative;
	isolation: isolate;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: clamp(16px, 3vh, 32px);
	padding: clamp(32px, 5vh, 56px) clamp(28px, 4vw, 60px);
	overflow: hidden;
	border-radius: 32px;
	color: var(--ah-on-navy);
	background:
		radial-gradient(90% 60% at 85% 0%, rgba(42, 64, 124, .9), transparent 60%),
		linear-gradient(165deg, #15254F 0%, var(--ah-navy) 48%, var(--ah-deep) 100%);
	box-shadow: 0 30px 60px -30px rgba(9, 18, 42, .55);
}
.ah-auth__box::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%);
}
.ah-auth__glow {
	position: absolute;
	z-index: -1;
	width: 46%;
	aspect-ratio: 1;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .55;
	pointer-events: none;
}
.ah-auth__glow--a { inset-block-start: 18%; inset-inline-end: -12%; background: #C5A572; opacity: .28; animation: ah-auth-drift 16s ease-in-out infinite alternate; }
.ah-auth__glow--b { inset-block-end: -14%; inset-inline-start: -10%; background: #3B5BB5; animation: ah-auth-drift 20s ease-in-out -6s infinite alternate-reverse; }
@keyframes ah-auth-drift { to { transform: translate(8%, -10%) scale(1.15); } }

.ah-auth__net { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .9; }
.ah-auth__links line { stroke: rgba(232, 201, 136, .14); stroke-width: 1; }
.ah-auth__signals line { stroke: #E8C988; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 8 100; stroke-dashoffset: 108; opacity: .85; animation: ah-auth-signal 5.2s linear var(--d, 0s) infinite; }
.ah-auth__nodes circle { fill: #E8C988; opacity: .55; animation: ah-auth-pulse 4s ease-in-out var(--d, 0s) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ah-auth-signal { to { stroke-dashoffset: 0; } }
@keyframes ah-auth-pulse { 50% { opacity: 1; transform: scale(1.5); } }

.ah-auth__intro { position: relative; }
.ah-auth__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(232, 201, 136, .12);
	box-shadow: inset 0 0 0 1px rgba(232, 201, 136, .28);
	color: var(--ah-gold-hi);
	font-size: 13px;
	font-weight: 600;
}
.ah-auth__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ah-gold-hi); box-shadow: 0 0 0 4px rgba(232, 201, 136, .18); }
.ah-auth__headline {
	margin: 18px 0 0;
	font-family: var(--ah-f-display);
	max-width: 15em;
	font-size: clamp(1.6rem, 2.1vw, 2.25rem);
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
	text-wrap: balance;
}

/* the scene: portrait in the middle, three glass cards around it */
.ah-auth__scene { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.ah-auth__portrait {
	position: relative;
	margin: 0;
	width: min(300px, 30vh * .8 + 60px, 100%);
	aspect-ratio: 4 / 5;
	transform-style: preserve-3d;
	transition: transform .6s var(--ah-ease);
	will-change: transform;
}
.ah-auth__frame {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 30px;
	background: var(--ah-navy-2);
	box-shadow: 0 0 0 1px rgba(232, 201, 136, .35), 0 40px 70px -30px rgba(0, 0, 0, .75);
}
.ah-auth__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(9, 18, 42, .82) 100%), linear-gradient(120deg, rgba(255, 255, 255, .12), transparent 40%);
}
.ah-auth__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.09); }
.ah-auth__lens {
	position: absolute;
	inset: -14%;
	width: 128%;
	height: 128%;
	pointer-events: none;
	transform: rotate(-80deg);
}
.ah-auth__lens circle { fill: none; stroke: var(--ah-gold-hi); stroke-width: .7; stroke-dasharray: 38 62; stroke-linecap: round; opacity: .7; animation: ah-auth-lens 1.6s var(--ah-ease) .3s both; }
@keyframes ah-auth-lens { from { stroke-dasharray: 0 100; } }
.ah-auth__who {
	position: absolute;
	inset-inline: 18px auto;
	max-width: 72%;
	inset-block-end: 18px;
	display: grid;
	gap: 2px;
	color: #fff;
}
.ah-auth__who b { font-family: var(--ah-f-display); font-size: 17px; font-weight: 700; }
.ah-auth__who span { font-size: 12.5px; line-height: 1.5; color: var(--ah-on-navy-muted); }
.ah-auth__note {
	position: absolute;
	inset-block-start: 6px;
	inset-inline-start: -86px;
	font-family: var(--ah-f-hand);
	font-size: 26px;
	color: var(--ah-gold-hi);
	transform: rotate(-6deg);
	white-space: nowrap;
}
.ah-auth__note svg { position: absolute; inset-block-start: 34px; inset-inline-start: 26px; width: 46px; height: 32px; fill: none; stroke: var(--ah-gold-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: scaleX(var(--ah-auth-dir)); }

.ah-auth__doors { list-style: none; margin: 0; padding: 0; }
.ah-auth__door {
	--ah-tile-bg: linear-gradient(150deg, rgba(232, 201, 136, .26), rgba(232, 201, 136, .08));
	--ah-tile-shadow: inset 0 0 0 1px rgba(232, 201, 136, .3);
	--ah-tile-ink: #F4F1E8;
	--ah-tile-acc: #E8C988;
	--ah-tile-mask: #1A2952;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	padding-inline-end: 18px;
	border-radius: 18px;
	background: rgba(20, 34, 72, .55);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 40px -24px rgba(0, 0, 0, .7);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.ah-auth__door > span:last-child { display: grid; gap: 1px; min-width: 0; }
.ah-auth__door b { font-family: var(--ah-f-display); font-size: 15px; font-weight: 700; color: #fff; }
.ah-auth__door small { font-size: 12.5px; line-height: 1.5; color: var(--ah-on-navy-muted); }
.ah-auth__door .ah-itile--sm { width: 40px; height: 40px; border-radius: 12px; }

@media (min-width: 1280px) and (min-height: 700px) {
	.ah-auth__doors { position: absolute; inset: 0; pointer-events: none; }
	.ah-auth__door { position: absolute; width: min(250px, 42%); pointer-events: auto; animation: ah-auth-float 7s ease-in-out infinite alternate; }
	.ah-auth__door--1 { inset-block-start: 3%; inset-inline-end: 0; }
	.ah-auth__door--2 { inset-block-start: 42%; inset-inline-start: 0; }
	.ah-auth__door--3 { inset-block-end: 2%; inset-inline-end: 3%; }
}
@media (max-width: 1279px), (max-height: 699px) {
	.ah-auth__scene { display: flex; flex-direction: column; gap: 20px; }
	.ah-auth__doors { display: grid; gap: 10px; width: 100%; }
}
@keyframes ah-auth-float { to { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- card */

.ah-auth__card { position: relative; }
.ah-auth__ctx {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 5px;
	padding-inline-end: 16px;
	border-radius: 999px;
	background: var(--ah-tint);
	box-shadow: inset 0 0 0 1px var(--ah-tint-line);
	color: var(--ah-ink-gold);
	font-size: 14px;
	font-weight: 600;
	--ah-tile-bg: var(--ah-navy);
}
.ah-auth__ctx .ah-itile--sm { width: 30px; height: 30px; border-radius: 999px; }
.ah-auth__ctx .ah-itile--sm .ah-ic { width: 18px; height: 18px; }

.ah-auth__tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 5px;
	margin-bottom: 28px;
	border-radius: 16px;
	background: var(--ah-sand);
	box-shadow: inset 0 1px 2px rgba(15, 27, 60, .08);
}
.ah-auth__tabs a {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 12px;
	color: var(--ah-soft);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color .3s;
}
.ah-auth__tabs a[aria-selected="true"] { color: var(--ah-navy); }
.ah-auth__pill {
	position: absolute;
	inset-block: 5px;
	inset-inline-start: 5px;
	width: calc(50% - 5px);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 27, 60, .08), 0 8px 18px -10px rgba(15, 27, 60, .35);
	transition: transform .5s var(--ah-spring);
}
.ah-auth__card[data-ah-view="register"] .ah-auth__pill { transform: translateX(calc(100% * var(--ah-auth-dir))); }
.ah-auth__card[data-ah-view="code"] .ah-auth__tabs,
.ah-auth__card[data-ah-view="code"] .ah-auth__ctx { display: none; }

.ah-auth__view[hidden] { display: none; }
.ah-auth__title {
	margin: 0 0 8px;
	font-family: var(--ah-f-display);
	font-size: clamp(1.75rem, 2.3vw, 2.2rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--ah-navy);
	text-wrap: balance;
}
.ah-auth__title:focus { outline: 0; }
.ah-auth__lead { margin: 0 0 24px; color: var(--ah-muted); font-size: 15.5px; line-height: 1.75; }
.ah-auth__email { color: var(--ah-navy); font-weight: 700; word-break: break-all; }
.ah-auth__mailart { display: inline-block; margin-bottom: 18px; }
.ah-auth__mailart .ah-itile .ah-auth__i { width: 32px; height: 32px; color: var(--ah-gold-hi); stroke-width: 1.6; }
.ah-auth__backlink { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--ah-soft) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.ah-auth__backlink:hover { color: var(--ah-navy) !important; }
.ah-auth__backlink .ah-auth__i,
.ah-auth__alt .ah-auth__i { width: 18px; height: 18px; transform: scaleX(var(--ah-auth-dir)); }

/* Google (Nextend's markup; its own styles are not loaded here) */
.ah-auth__social div.nsl-container { display: block; margin: 0; }
.ah-auth__social div.nsl-container .nsl-container-buttons { display: flex; flex-direction: column; width: 100%; }
.ah-auth__social div.nsl-container .nsl-container-buttons a { display: block; width: 100%; margin: 0; text-decoration: none !important; box-shadow: none !important; }
.ah-auth__social div.nsl-container .nsl-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 54px;
	padding: 0 18px;
	border-radius: 14px;
	background: #fff !important;
	box-shadow: inset 0 0 0 1px var(--ah-line), 0 1px 2px rgba(15, 27, 60, .05) !important;
	color: var(--ah-navy) !important;
	transition: box-shadow .25s, transform .25s;
}
.ah-auth__social div.nsl-container .nsl-container-buttons a:hover .nsl-button { box-shadow: inset 0 0 0 1px var(--ah-gold), 0 10px 22px -14px rgba(15, 27, 60, .45) !important; transform: translateY(-1px); }
.ah-auth__social div.nsl-container .nsl-button-svg-container { display: flex; padding: 0; }
.ah-auth__social div.nsl-container .nsl-button-svg-container svg { width: 22px; height: 22px; }
.ah-auth__social div.nsl-container .nsl-button-google div.nsl-button-label-container { margin: 0; padding: 0; font-family: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.ah-auth__social .nsl-button-label-container b { font-weight: 800; }
.ah-auth__or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ah-soft); font-size: 13px; }
.ah-auth__or::before,
.ah-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--ah-line); }

/* fields */
.ah-auth__form { display: grid; gap: 18px; }
.ah-field { display: grid; gap: 8px; min-width: 0; }
.ah-field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ah-field__label { font-size: 14px; font-weight: 600; color: var(--ah-navy); }
.ah-field__box {
	position: relative;
	display: flex;
	align-items: center;
	height: 54px;
	border-radius: 14px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--ah-line), 0 1px 2px rgba(15, 27, 60, .04);
	transition: box-shadow .25s;
}
.ah-field__box:hover { box-shadow: inset 0 0 0 1px #C9C4B6, 0 1px 2px rgba(15, 27, 60, .04); }
.ah-field__box:focus-within { box-shadow: inset 0 0 0 1.5px var(--ah-gold), 0 0 0 4px rgba(197, 165, 114, .2); }
.ah-field__box > .ah-auth__i { position: absolute; inset-inline-start: 16px; color: #8C887D; pointer-events: none; transition: color .25s; }
.ah-field__box:focus-within > .ah-auth__i { color: var(--ah-ink-gold); }
.ah-field__box input {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 16px;
	padding-inline-start: 48px;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: var(--ah-ink);
	font: inherit;
	font-size: 16px;
	outline: 0;
	box-shadow: none;
}
.ah-field__box input[dir="ltr"] { text-align: start; }
[dir="rtl"] .ah-field__box input[dir="ltr"] { text-align: right; }
.ah-field__box input[dir="ltr"]:placeholder-shown { text-align: start; }
.ah-field__box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ah-ink); }
.ah-field__eye {
	position: absolute;
	inset-inline-end: 6px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #8C887D;
	cursor: pointer;
}
.ah-field__eye:hover { color: var(--ah-navy); background: rgba(15, 27, 60, .05); }
.ah-field__eye .ah-auth__i--eyeoff,
.ah-field__eye[aria-pressed="true"] .ah-auth__i--eye { display: none; }
.ah-field__eye[aria-pressed="true"] .ah-auth__i--eyeoff { display: block; }
.ah-field__box:has(.ah-field__eye:not([hidden])) input { padding-inline-end: 52px; }
.ah-field.is-bad .ah-field__box { box-shadow: inset 0 0 0 1.5px #C2523F, 0 0 0 4px rgba(194, 82, 63, .12); }
.ah-field.is-bad .ah-field__box > .ah-auth__i { color: #C2523F; }
.ah-field__err { color: #A23E2E; font-size: 13px; font-weight: 500; }
.ah-field__err[hidden],
.ah-field__hint[hidden] { display: none; }
.ah-field__hint { color: #8A5A12; font-size: 13px; }

.ah-meter { display: flex; align-items: center; gap: 12px; }
.ah-meter__bars { display: grid; flex: 1; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ah-meter__bars i { height: 4px; border-radius: 4px; background: var(--ah-sand); transition: background-color .3s; }
.ah-meter__text { min-width: 7em; color: var(--ah-soft); font-size: 12.5px; text-align: end; }
.ah-meter[data-level="1"] i:nth-child(-n+1) { background: #C2523F; }
.ah-meter[data-level="2"] i:nth-child(-n+2) { background: #D9963A; }
.ah-meter[data-level="3"] i:nth-child(-n+3) { background: var(--ah-gold); }
.ah-meter[data-level="4"] i { background: #3E8E66; }

.ah-switch,
.ah-check { position: relative; display: flex; align-items: flex-start; gap: 12px; color: var(--ah-muted); font-size: 14px; cursor: pointer; }
.ah-switch input,
.ah-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ah-switch__track {
	position: relative;
	flex: none;
	width: 40px;
	height: 24px;
	border-radius: 999px;
	background: #D6D2C6;
	transition: background-color .3s;
}
.ah-switch__track::after {
	content: "";
	position: absolute;
	inset-block-start: 3px;
	inset-inline-start: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 4px rgba(15, 27, 60, .25);
	transition: transform .35s var(--ah-spring);
}
.ah-switch input:checked + .ah-switch__track { background: var(--ah-navy); }
[dir="ltr"] .ah-switch input:checked + .ah-switch__track::after { transform: translateX(16px); }
[dir="rtl"] .ah-switch input:checked + .ah-switch__track::after { transform: translateX(-16px); }
.ah-switch input:focus-visible + .ah-switch__track,
.ah-check input:focus-visible + .ah-check__box { outline: 2px solid var(--ah-gold); outline-offset: 3px; }
.ah-check__box {
	flex: none;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 7px;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px #C9C4B6;
	transition: background-color .25s, box-shadow .25s;
}
.ah-check__box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--ah-ease) .05s; }
.ah-check input:checked + .ah-check__box { background: var(--ah-navy); box-shadow: inset 0 0 0 1.5px var(--ah-navy); }
.ah-check input:checked + .ah-check__box svg { stroke-dashoffset: 0; }
.ah-check a { color: var(--ah-ink-gold); font-weight: 600; text-underline-offset: 3px; }
.ah-field--check.is-bad .ah-check__box { box-shadow: inset 0 0 0 1.5px #C2523F; }

.ah-auth__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ah-ink-gold) !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.ah-auth__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ah-auth__link:disabled { color: var(--ah-soft) !important; cursor: default; text-decoration: none; }

/* buttons */
.ah-auth__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	margin-top: 4px;
	padding: 0 22px;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(180deg, #1F3166 0%, var(--ah-navy) 100%);
	color: #fff !important;
	font-family: var(--ah-f-display);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 28px -14px rgba(15, 27, 60, .7);
	transition: transform .25s var(--ah-ease), box-shadow .25s;
}
.ah-auth__btn::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: -60%;
	width: 50%;
	background: linear-gradient(100deg, transparent, rgba(232, 201, 136, .35), transparent);
	transform: skewX(-18deg);
	transition: inset-inline-start .8s var(--ah-ease);
}
.ah-auth__btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 18px 32px -14px rgba(15, 27, 60, .8); }
.ah-auth__btn:hover::before { inset-inline-start: 120%; }
.ah-auth__btn:active { transform: translateY(0) scale(.99); }
.ah-auth__btn .ah-auth__i { width: 20px; height: 20px; color: var(--ah-gold-hi); transform: scaleX(var(--ah-auth-dir)); transition: transform .3s var(--ah-ease); }
.ah-auth__btn:hover .ah-auth__i { transform: scaleX(var(--ah-auth-dir)) translateX(3px); }
.ah-auth__btn.is-busy { pointer-events: none; }
.ah-auth__btn.is-busy > * { opacity: 0; }
.ah-auth__btn.is-busy::after {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .25);
	border-top-color: var(--ah-gold-hi);
	animation: ah-auth-spin .8s linear infinite;
}
@keyframes ah-auth-spin { to { transform: rotate(360deg); } }
.ah-auth__btn--ghost { margin-top: 8px; background: #fff; color: var(--ah-navy) !important; box-shadow: inset 0 0 0 1px var(--ah-line); }
.ah-auth__btn--ghost .ah-auth__i { color: var(--ah-ink-gold); }

.ah-auth__alt { margin: 22px 0 0; color: var(--ah-muted); font-size: 14.5px; text-align: center; }
.ah-auth__alt a { display: inline-flex; align-items: center; gap: 6px; color: var(--ah-ink-gold); font-weight: 700; text-decoration: none; }
.ah-auth__alt a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* alerts */
.ah-auth__alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.65;
	animation: ah-auth-shake .4s var(--ah-ease);
}
.ah-auth__alert[hidden] { display: none; }
.ah-auth__alert .ah-auth__i { width: 20px; height: 20px; margin-top: 1px; }
.ah-auth__alert.is-error { background: #FBEEEB; color: #8E3426; box-shadow: inset 0 0 0 1px #F0D2CB; }
.ah-auth__alert.is-ok { background: #EAF4EE; color: #2D6A4A; box-shadow: inset 0 0 0 1px #CFE6D8; animation: none; }
.ah-auth__alert.is-info { background: var(--ah-tint); color: var(--ah-ink-gold); box-shadow: inset 0 0 0 1px var(--ah-tint-line); animation: none; }
.ah-auth__alert a { font-weight: 700; }
@keyframes ah-auth-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* the code */
.ah-otp { position: relative; }
.ah-otp__input {
	width: 100%;
	height: 62px;
	padding: 0 16px;
	border: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--ah-line);
	color: var(--ah-navy);
	font-family: var(--ah-f-mono);
	font-size: 26px;
	letter-spacing: .5em;
	text-align: center;
	outline: 0;
}
.ah-otp__boxes { display: none; }
.ah-auth-js .ah-otp__boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ah-auth-js .ah-otp__input {
	position: absolute;
	inset: 0;
	z-index: 1;
	height: 100%;
	opacity: 0;
	color: transparent;
	caret-color: transparent;
	font-size: 16px;
	letter-spacing: 0;
}
.ah-otp__boxes i {
	position: relative;
	display: grid;
	place-items: center;
	height: 62px;
	border-radius: 14px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--ah-line), 0 1px 2px rgba(15, 27, 60, .05);
	color: var(--ah-navy);
	font-family: var(--ah-f-mono);
	font-size: 26px;
	font-style: normal;
	font-weight: 600;
	transition: box-shadow .2s, transform .25s var(--ah-spring);
}
.ah-otp__boxes i.is-full { animation: ah-auth-pop .3s var(--ah-spring); }
.ah-otp.is-focus .ah-otp__boxes i.is-on { box-shadow: inset 0 0 0 1.5px var(--ah-gold), 0 0 0 4px rgba(197, 165, 114, .2); }
.ah-otp.is-focus .ah-otp__boxes i.is-on:empty::after { content: ""; width: 2px; height: 26px; border-radius: 2px; background: var(--ah-navy); animation: ah-auth-caret 1s steps(1) infinite; }
.ah-otp.is-bad .ah-otp__boxes { animation: ah-auth-shake .4s var(--ah-ease); }
.ah-otp.is-bad .ah-otp__boxes i { box-shadow: inset 0 0 0 1.5px #C2523F; }
.ah-otp.is-ok .ah-otp__boxes i { box-shadow: inset 0 0 0 1.5px #3E8E66; color: #2D6A4A; }
@keyframes ah-auth-pop { 50% { transform: scale(1.08); } }
@keyframes ah-auth-caret { 50% { opacity: 0; } }
.ah-auth__resend { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 6px; margin-top: 18px; color: var(--ah-muted); font-size: 14px; text-align: center; }
.ah-auth__timer { color: var(--ah-soft); font-family: var(--ah-f-mono); font-size: 13px; }
.ah-auth__timer[hidden] { display: none; }
.ah-auth__view--code .ah-auth__alt { margin-top: 14px; }

.ah-auth__done { display: grid; justify-items: center; gap: 4px; padding-block: 24px; text-align: center; }
.ah-auth__done[hidden] { display: none; }
.ah-auth__tick { width: 84px; height: 84px; margin-bottom: 14px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ah-auth__tick circle { stroke: #3E8E66; stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ah-auth-draw .7s var(--ah-ease) forwards; }
.ah-auth__tick path { stroke: #3E8E66; stroke-width: 3.5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ah-auth-draw .5s var(--ah-ease) .55s forwards; }
@keyframes ah-auth-draw { to { stroke-dashoffset: 0; } }

.ah-auth__ts { min-height: 65px; }

/* ---------------------------------------------------------------- entrance */

.ah-auth__card > *,
.ah-auth__view:not([hidden]) > * { animation: ah-auth-up .7s var(--ah-ease) both; }
.ah-auth__card > :nth-child(2),
.ah-auth__view > :nth-child(2) { animation-delay: .06s; }
.ah-auth__card > :nth-child(3),
.ah-auth__view > :nth-child(3) { animation-delay: .12s; }
.ah-auth__view > :nth-child(4) { animation-delay: .18s; }
.ah-auth__view > :nth-child(5) { animation-delay: .24s; }
.ah-auth__view > :nth-child(n+6) { animation-delay: .3s; }
.ah-auth__intro { animation: ah-auth-up .8s var(--ah-ease) .1s both; }
.ah-auth__portrait { animation: ah-auth-in 1s var(--ah-ease) .15s both; }
.ah-auth__door { animation-name: ah-auth-up, ah-auth-float; animation-duration: .8s, 7s; animation-timing-function: var(--ah-ease), ease-in-out; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-fill-mode: both, none; }
.ah-auth__door--1 { animation-delay: .35s, 1.2s; }
.ah-auth__door--2 { animation-delay: .5s, -1.2s; }
.ah-auth__door--3 { animation-delay: .65s, -3.6s; }
@keyframes ah-auth-up { from { opacity: .01; transform: translateY(14px); } }
@keyframes ah-auth-in { from { opacity: .01; transform: scale(.94); } }
.ah-auth__view.is-swap > * { animation: ah-auth-up .5s var(--ah-ease) both; }

/* ---------------------------------------------------------------- tablets and phones: navy top, forms in a sheet */

@media (max-width: 1023px) {
	.ah-auth {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		grid-template-areas: "bar" "panel" "main";
		background: linear-gradient(170deg, #15254F 0%, var(--ah-navy) 60%, var(--ah-deep) 100%);
	}
	.ah-auth__bar { position: relative; z-index: 2; padding: max(14px, env(safe-area-inset-top)) 18px 0; }
	.ah-auth__brand { color: #fff !important; font-size: 16px; }
	.ah-auth__tools { color: #fff; }
	.ah-auth__tools a { min-height: 38px; padding: 0 12px; }
	.ah-auth__tools a:hover { background: rgba(255, 255, 255, .08); }
	.ah-auth__lang { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
	.ah-auth__panel { position: static; height: auto; padding: 0; }
	.ah-auth__box {
		display: grid;
		grid-template-columns: 60px minmax(0, 1fr);
		grid-template-areas: "photo intro" "doors doors";
		align-items: center;
		gap: 16px 14px;
		height: auto;
		padding: 20px 18px 52px;
		overflow: visible;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}
	.ah-auth__box::before { mask-image: linear-gradient(#000, transparent); }
	.ah-auth__glow--a { inset-block-start: -40%; }
	.ah-auth__glow--b { display: none; }
	.ah-auth__net { opacity: .45; }
	.ah-auth__intro { grid-area: intro; max-width: none; }
	.ah-auth__kicker { display: none; }
	.ah-auth__headline { margin: 0; font-size: clamp(1.15rem, 4.6vw, 1.5rem); line-height: 1.45; }
	.ah-auth__scene { display: contents; }
	.ah-auth__portrait { grid-area: photo; width: 60px; animation: none; }
	.ah-auth__frame { border-radius: 50%; box-shadow: 0 0 0 2px rgba(232, 201, 136, .55); }
	.ah-auth__photo { object-position: 50% 22%; transform: scale(1.25); }
	.ah-auth__frame::after,
	.ah-auth__who,
	.ah-auth__note,
	.ah-auth__lens { display: none; }
	.ah-auth__doors { grid-area: doors; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
	.ah-auth__doors::-webkit-scrollbar { display: none; }
	.ah-auth__door { flex: none; position: static; width: auto; padding: 5px; padding-inline-end: 14px; border-radius: 999px; scroll-snap-align: start; animation: ah-auth-up .7s var(--ah-ease) both; }
	.ah-auth__door small { display: none; }
	.ah-auth__door b { font-size: 13.5px; font-weight: 600; }
	.ah-auth__door .ah-itile--sm { width: 30px; height: 30px; border-radius: 999px; }
	.ah-auth__door .ah-itile--sm .ah-ic { width: 18px; height: 18px; }
	.ah-auth__main {
		position: relative;
		z-index: 1;
		margin-top: -28px;
		padding: 30px 20px max(20px, env(safe-area-inset-bottom));
		border-radius: 28px 28px 0 0;
		background: var(--ah-grain) 0 0 / 36px 36px, var(--ah-ivory);
		box-shadow: 0 -16px 40px -24px rgba(0, 0, 0, .5);
	}
	.ah-auth__stage { place-items: start center; padding-block: 0 28px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
	.ah-auth__box { padding-inline: max(32px, calc(50% - 300px)); }
	.ah-auth__bar { padding-inline: max(32px, calc(50% - 300px)); }
	.ah-auth__main { padding-top: 44px; }
	.ah-auth__door small { display: none; }
}
@media (max-width: 400px) {
	.ah-auth__home span { display: none; }
	.ah-auth__tabs a { font-size: 14px; }
	.ah-otp__boxes,
	.ah-auth-js .ah-otp__boxes { gap: 7px; }
	.ah-otp__boxes i { height: 56px; font-size: 22px; }
}

/* ---------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	.ah-auth *,
	.ah-auth *::before,
	.ah-auth *::after { animation: none !important; transition: none !important; }
	.ah-auth__signals { display: none; }
}
