/**
 * 2FA step layout on the login page.
 * Box width, form border, fields, and buttons are styled by Login Page Customizor (#login / #login form).
 * Do not override #login width here.
 */
#login.wpps-2fa-step-active #login_error,
#login.wpps-2fa-step-active #login-message,
#login.wpps-2fa-step-active #login_message,
#login.wpps-2fa-step-active > .message,
#login.wpps-2fa-step-active > .notice {
	display: none !important;
}

.wpps-2fa-step {
	display: none;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: inherit;
}

.wpps-2fa-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
}

/* wp-login: no extra card chrome — LPC owns #login / #login form appearance */
body.login #login .wpps-2fa-card,
body.login #login .wpps-2fa-step {
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	color: inherit;
}

body.login #login .wpps-2fa-card__title {
	color: inherit;
}

.wpps-2fa-card__title {
	margin: 0 0 8px 0;
	padding: 0;
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
}

.wpps-2fa-card--fullpage {
	margin-bottom: 24px;
}

.wpps-2fa-form {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.wpps-2fa-form .input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

/* Verify-only row (authenticator / backup) */
.wpps-2fa-primary-actions {
	margin: 20px 0 0 0;
	padding: 0;
}

.wpps-2fa-primary-actions .wpps-2fa-submit-row {
	margin: 0;
	padding: 0;
}

.wpps-2fa-primary-actions .wpps-2fa-resend-wrap {
	margin: 12px 0 0 0;
	padding: 0;
}

.wpps-2fa-primary-actions .wpps-2fa-submit-row .button.button-large,
.wpps-2fa-primary-actions .wpps-2fa-resend-wrap .button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	font-family: inherit;
}

/* Email: Verify + Resend side-by-side with gap before Resend */
.wpps-2fa-primary-actions--email {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 14px;
	margin-top: 20px;
}

.wpps-2fa-primary-actions--email .wpps-2fa-submit-row,
.wpps-2fa-primary-actions--email .wpps-2fa-resend-wrap {
	flex: 1 1 50%;
	margin: 0;
	min-width: 0;
}

.wpps-2fa-trust-wrap {
	margin: 16px 0 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: #50575e;
	font-family: inherit;
}

.wpps-2fa-trust-wrap label {
	font-family: inherit;
	font-weight: 400;
}

.wpps-2fa-back-wrap {
	margin: 32px 0 0 0;
	padding: 0;
	font-size: 14px;
	text-align: center;
	font-family: inherit;
}

.wpps-2fa-back-link {
	font-family: inherit;
	text-decoration: none;
	color: #50575e;
}

.wpps-2fa-back-link:hover,
.wpps-2fa-back-link:focus {
	color: #1d2327;
}

.wpps-2fa-secondary-actions {
	margin: 18px 0 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wpps-2fa-secondary-actions__item {
	display: block;
	margin: 0;
	padding: 0;
}

.wpps-2fa-secondary-actions__item .button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	font-family: inherit;
}

.wpps-2fa-code-field-wrap,
.wpps-2fa-card .wpps-2fa-code-field-wrap {
	margin-bottom: 6px;
}

.wpps-2fa-code-hint {
	display: block;
	margin: 0 0 14px 0;
	font-size: 14px;
	line-height: 1.5;
	font-family: inherit;
}

.wpps-2fa-form .wpps-2fa-code-label,
.wpps-2fa-card .wpps-2fa-code-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px 0;
	font-family: inherit;
}

.wpps-2fa-form .wpps-2fa-code-field-wrap .input,
.wpps-2fa-card .wpps-2fa-code-field-wrap .input {
	margin-top: 0;
}

.wpps-2fa-error {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	padding: 12px 14px;
	margin: 0 0 20px 0;
	font-size: 13px;
	line-height: 1.5;
	font-family: inherit;
}

.wpps-2fa-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* WooCommerce account (standalone card chrome when LPC is not used) */
.woocommerce .wpps-2fa-card {
	max-width: 340px;
	margin-left: auto;
	margin-right: auto;
	padding: 28px 24px 24px;
	background: #fff;
	border: 1px solid #dcdcde;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	color: #1d2327;
}

@media screen and (max-width: 782px) {
	.wpps-2fa-step,
	.wpps-2fa-form,
	.wpps-2fa-form .input,
	.wpps-2fa-card,
	.wpps-2fa-card .input {
		width: 100%;
		max-width: 100%;
	}
	.woocommerce .wpps-2fa-card {
		padding: 22px 18px 20px;
	}
	.wpps-2fa-primary-actions--email {
		flex-direction: column;
		gap: 12px;
	}
}
