/* Full width on every login template (match inputs + social buttons) */
#loginform .aio-login-otp-buttons-wrapper,
#login .aio-login-otp-buttons-wrapper,
.aio-login-otp-buttons-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	flex-shrink: 0;
	align-self: stretch;
}

#loginform .aio-login-otp-launcher,
#login .aio-login-otp-launcher,
.aio-login-otp-launcher {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	padding: 12px 24px;
	font-weight: 600;
	font-size: 14px;
	border-radius: 7.518px;
	border: 1px solid #eff0f6;
	background: #fff;
	box-shadow: 0 -2.255px 4.511px 0 rgba(244, 245, 250, 0.6) inset;
	color: #1d2327;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.aio-login-otp-launcher:hover,
.aio-login-otp-launcher:focus-visible {
	border-color: #2271b1;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.35);
}

.aio-login-otp-launcher__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
	color: #1d2327;
}

.aio-login-otp-launcher__icon .aio-login-otp-launcher__svg {
	width: 20px;
	height: 20px;
	display: block;
}

body.login #loginform .aio-login-otp-launcher,
body.login #login .aio-login-otp-launcher {
	justify-content: center !important;
	text-align: center !important;
}

/* Inline OTP panel — replaces login form, not a modal */
.aio-login-otp-panel {
	display: none;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 16px;
	box-sizing: border-box;
}

#login.aio-login-otp-view--active .aio-login-otp-panel {
	display: block;
}

#login.aio-login-otp-view--active #loginform,
#login.aio-login-otp-view--active .aio-login-otp-buttons-wrapper,
#login.aio-login-otp-view--active .aio-login-social-login-buttons-wrapper,
#login.aio-login-otp-view--active #nav,
#login.aio-login-otp-view--active .privacy-policy-page-link {
	display: none !important;
}

/* Split / narrow-column templates: panel inside #loginform */
body.login.aio-login__template-09 #login.aio-login-otp-view--active #loginform,
body.login.aio-login__template-09 #login.aio-login-magic-link-view--active #loginform,
body.login.aio-login__template-06 #login.aio-login-otp-view--active #loginform,
body.login.aio-login__template-06 #login.aio-login-magic-link-view--active #loginform,
body.login.aio-login__template-01 #login.aio-login-otp-view--active #loginform,
body.login.aio-login__template-01 #login.aio-login-magic-link-view--active #loginform {
	display: block !important;
}

body.login.aio-login__template-09 #login.aio-login-otp-view--active #loginform,
body.login.aio-login__template-09 #login.aio-login-magic-link-view--active #loginform {
	display: flex !important;
	flex-direction: column !important;
}

body.login.aio-login__template-09 #login.aio-login-otp-view--active #loginform > *:not(h1):not(#aio-login-otp-panel):not(#aio-login-magic-link-panel),
body.login.aio-login__template-09 #login.aio-login-magic-link-view--active #loginform > *:not(h1):not(#aio-login-otp-panel):not(#aio-login-magic-link-panel),
body.login.aio-login__template-06 #login.aio-login-otp-view--active #loginform > *:not(#aio-login-otp-panel):not(#aio-login-magic-link-panel),
body.login.aio-login__template-06 #login.aio-login-magic-link-view--active #loginform > *:not(#aio-login-otp-panel):not(#aio-login-magic-link-panel),
body.login.aio-login__template-01 #login.aio-login-otp-view--active #loginform > *:not(#aio-login-otp-panel):not(#aio-login-magic-link-panel),
body.login.aio-login__template-01 #login.aio-login-magic-link-view--active #loginform > *:not(#aio-login-otp-panel):not(#aio-login-magic-link-panel) {
	display: none !important;
}

body.login.aio-login__template-01 #login.aio-login-otp-view--active > h1,
body.login.aio-login__template-01 #login.aio-login-magic-link-view--active > h1 {
	display: none !important;
}

body.login.aio-login__template-06 #login.aio-login-otp-view--active .aio-login__template-06-scroll > h1,
body.login.aio-login__template-06 #login.aio-login-magic-link-view--active .aio-login__template-06-scroll > h1,
body.login.aio-login__template-06 #login.aio-login-otp-view--active #nav,
body.login.aio-login__template-06 #login.aio-login-magic-link-view--active #nav,
body.login.aio-login__template-06 #login.aio-login-otp-view--active #backtoblog,
body.login.aio-login__template-06 #login.aio-login-magic-link-view--active #backtoblog {
	display: none !important;
}

body.login.aio-login__template-09 #login.aio-login-otp-view--active #loginform > #aio-login-otp-panel,
body.login.aio-login__template-09 #login.aio-login-magic-link-view--active #loginform > #aio-login-magic-link-panel,
body.login.aio-login__template-06 #login.aio-login-otp-view--active #loginform > #aio-login-otp-panel,
body.login.aio-login__template-06 #login.aio-login-magic-link-view--active #loginform > #aio-login-magic-link-panel,
body.login.aio-login__template-01 #login.aio-login-otp-view--active #loginform > #aio-login-otp-panel,
body.login.aio-login__template-01 #login.aio-login-magic-link-view--active #loginform > #aio-login-magic-link-panel {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.aio-login-otp-panel[hidden] {
	display: none !important;
}

.aio-login-otp-panel__back-wrap {
	margin: 0 0 12px;
}

.aio-login-otp-back-to-login {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #2271b1;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
}

.aio-login-otp-back-to-login:hover,
.aio-login-otp-back-to-login:focus-visible {
	color: #135e96;
	text-decoration: underline;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.35);
	border-radius: 2px;
}

.aio-login-otp-back-to-login__icon {
	font-size: 14px;
	line-height: 1;
}

.aio-login-otp-panel__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}

.aio-login-otp-panel__error {
	color: #b32d2e;
	margin: 0 0 12px;
	font-size: 13px;
	text-align: center;
}

.aio-login-otp-panel__error[hidden] {
	display: none !important;
}

.aio-login-otp-panel__error a {
	color: #b32d2e;
	font-weight: 600;
	text-decoration: underline;
}

.aio-login-otp-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	font-size: 13px;
}

.aio-login-otp-field input,
.aio-login-otp-field select {
	width: 100%;
	margin-bottom: 12px;
	box-sizing: border-box;
}

.aio-login-otp-field .aio-login-otp-phone-field input {
	width: auto;
	margin-bottom: 0;
}

.aio-login-otp-phone-field {
	display: flex;
	align-items: stretch;
	width: 100%;
	margin-bottom: 6px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.aio-login-otp-phone-field:focus-within {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.aio-login-otp-phone-field__dial {
	display: inline-flex;
	align-items: center;
	padding: 0 10px;
	border: none;
	border-right: 1px solid #8c8f94;
	border-radius: 0;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.4;
	user-select: none;
	white-space: nowrap;
	flex-shrink: 0;
}

.aio-login-otp-phone-field input {
	border: none;
	border-radius: 0;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	max-width: none;
	margin-bottom: 0;
	padding: 8px 12px;
	background: transparent;
	box-shadow: none;
}

.aio-login-otp-phone-field__hint {
	margin: 0 0 12px;
	font-size: 12px;
	color: #646970;
	line-height: 1.4;
}

.aio-login-otp-captcha,
.aio-login-passwordless-captcha {
	margin-bottom: 12px;
	display: flex;
	justify-content: center;
	width: 100%;
}

.aio-login-otp-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 8px;
}

.aio-login-otp-actions--contact {
	justify-content: stretch;
}

.aio-login-otp-actions--contact .aio-login-otp-send {
	width: 100%;
}

.aio-login-otp-field--code {
	margin: 8px 0 4px;
}

.aio-login-otp-field--code .aio-login-otp-code-input {
	font-size: 16px;
	letter-spacing: 0.04em;
	text-align: left;
}

.aio-login-otp-field--code .aio-login-otp-code-input:focus {
	border-color: #2271b1;
	outline: 2px solid rgba(34, 113, 177, 0.25);
}

.aio-login-otp-resend-wrap {
	text-align: center;
	margin-bottom: 8px;
	font-size: 13px;
}

.aio-login-otp-resend {
	border: 0;
	background: transparent;
	color: #2271b1;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

.aio-login-otp-resend:disabled {
	color: #a7aaad;
	cursor: not-allowed;
	text-decoration: none;
}

.aio-login-otp-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #00a32a;
	color: #fff;
	font-size: 28px;
	line-height: 56px;
	text-align: center;
}

.aio-login-otp-step--success {
	text-align: center;
}

.aio-login-otp-step--success .aio-login-otp-continue {
	margin-top: 16px;
}

/* Main login form: captcha above Log In (reordered via login-form-captcha-position.js) */
#loginform .h-captcha,
#loginform .g-recaptcha,
#loginform .cf-turnstile,
#loginform .aio-login-turnstile-widget-error {
	width: 100% !important;
	max-width: 100% !important;
	margin: 12px 0 16px !important;
	display: flex;
	justify-content: center;
	box-sizing: border-box;
}

