/**
 * Login Armor — Two-Factor Authentication styles.
 *
 * Used for the standalone verification screen and profile page section.
 * Follows the la- prefix convention and existing CSS variables where possible.
 *
 * @package LoginArmor
 * @since   2.2.0
 */

/* ── Verification Screen ─────────────────────────────────────── */

.la-2fa-body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: #F0F0F1;
	color: #1D2327;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

.la-2fa-wrap {
	width: 100%;
	max-width: 400px;
	padding: 20px;
}

.la-2fa-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
	padding: 32px;
}

.la-2fa-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
	color: #1D2327;
}

.la-2fa-header__brand {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.la-2fa-user {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding: 10px 14px;
	background: #F6F7F7;
	border-radius: 8px;
}

.la-2fa-user__avatar {
	border-radius: 50%;
	width: 40px;
	height: 40px;
}

.la-2fa-user__name {
	font-size: 14px;
	font-weight: 500;
	color: #1D2327;
}

.la-2fa-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}

.la-2fa-desc {
	font-size: 13px;
	color: #50575E;
	margin: 0 0 20px;
	line-height: 1.5;
}

.la-2fa-error {
	background: #FEF2F2;
	border: 1px solid #FCA5A5;
	color: #991B1B;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 16px;
}

.la-2fa-success {
	background: #F0FDF4;
	border: 1px solid #86EFAC;
	color: #166534;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 16px;
}

.la-2fa-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.la-2fa-input {
	width: 100%;
	padding: 12px 16px;
	font-size: 24px;
	font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
	letter-spacing: 0.3em;
	text-align: center;
	border: 1px solid #DCDCDE;
	border-radius: 8px;
	outline: none;
	transition: border-color 150ms;
	box-sizing: border-box;
}

.la-2fa-input:focus {
	border-color: #E84A2E;
	box-shadow: 0 0 0 2px rgba(232, 74, 46, 0.15);
}

.la-2fa-input--backup {
	font-size: 18px;
	letter-spacing: 0.15em;
}

.la-2fa-btn {
	width: 100%;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #E84A2E;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 150ms;
}

.la-2fa-btn:hover {
	background: #C73D24;
}

.la-2fa-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.la-2fa-link {
	background: none;
	border: none;
	color: #2271B1;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
}

.la-2fa-link:hover {
	text-decoration: underline;
}

.la-2fa-link--dim {
	color: #8C8F94;
}

.la-2fa-resend {
	text-align: center;
}

.la-2fa-resend:disabled {
	color: #8C8F94;
	cursor: not-allowed;
}

.la-2fa-alt {
	margin-top: 16px;
	text-align: center;
}

.la-2fa-methods {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.la-2fa-method-link {
	display: block;
	padding: 8px 14px;
	font-size: 13px;
	color: #2271B1;
	background: #F6F7F7;
	border-radius: 6px;
	text-decoration: none;
	transition: background 150ms;
}

.la-2fa-method-link:hover {
	background: #EDEDED;
}

.la-2fa-footer {
	margin-top: 16px;
	text-align: center;
	padding-top: 16px;
	border-top: 1px solid #F0F0F1;
}

.la-2fa-back {
	text-align: center;
	margin-top: 16px;
	font-size: 13px;
}

.la-2fa-back a {
	color: #8C8F94;
	text-decoration: none;
}

.la-2fa-back a:hover {
	color: #50575E;
}

/* ── Profile Page 2FA Section ────────────────────────────────── */

.la-2fa-profile {
	max-width: 600px;
	margin: 24px 0;
}

.la-2fa-profile__card {
	background: #fff;
	border: 1px solid #DCDCDE;
	border-radius: 10px;
	padding: 24px;
}

.la-2fa-profile__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.la-2fa-profile__icon {
	width: 28px;
	height: 28px;
	color: #1D2327;
}

.la-2fa-profile__title {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
}

.la-2fa-profile__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 10px;
	border-radius: 20px;
	margin-left: 8px;
}

.la-2fa-profile__status--active {
	background: #DCFCE7;
	color: #166534;
}

.la-2fa-profile__status--inactive {
	background: #F1F5F9;
	color: #64748B;
}

.la-2fa-profile__sep {
	height: 1px;
	background: #F0F0F1;
	margin: 16px 0;
}

.la-2fa-profile__info {
	font-size: 13px;
	color: #50575E;
	margin: 0 0 16px;
	line-height: 1.5;
}

.la-2fa-profile__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.la-2fa-profile__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 6px;
	border: 1px solid #DCDCDE;
	background: #fff;
	color: #1D2327;
	cursor: pointer;
	transition: all 150ms;
}

.la-2fa-profile__btn:hover {
	background: #F6F7F7;
	border-color: #C3C4C7;
}

.la-2fa-profile__btn--primary {
	background: #E84A2E;
	border-color: #E84A2E;
	color: #fff;
}

.la-2fa-profile__btn--primary:hover {
	background: #C73D24;
	border-color: #C73D24;
}

.la-2fa-profile__btn--danger {
	color: #991B1B;
	border-color: #FCA5A5;
}

.la-2fa-profile__btn--danger:hover {
	background: #FEF2F2;
}

/* ── Setup Wizard Steps ──────────────────────────────────────── */

.la-2fa-wizard {
	margin-top: 16px;
}

.la-2fa-wizard__step {
	display: none;
}

.la-2fa-wizard__step.la-2fa-wizard__step--active {
	display: block;
}

.la-2fa-wizard__qr {
	display: flex;
	justify-content: center;
	margin: 16px 0;
}

.la-2fa-wizard__qr svg {
	max-width: 200px;
	max-height: 200px;
}

.la-2fa-wizard__secret {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #F6F7F7;
	border-radius: 6px;
	font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
	font-size: 13px;
	word-break: break-all;
	margin-bottom: 16px;
}

.la-2fa-wizard__copy {
	flex-shrink: 0;
	padding: 4px 8px;
	font-size: 12px;
	border: 1px solid #DCDCDE;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.la-2fa-wizard__help {
	font-size: 12px;
	color: #8C8F94;
	margin: 8px 0 0;
	line-height: 1.5;
}

.la-2fa-wizard__verify-input {
	width: 100%;
	padding: 10px 14px;
	font-size: 18px;
	font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
	letter-spacing: 0.2em;
	text-align: center;
	border: 1px solid #DCDCDE;
	border-radius: 6px;
	margin: 12px 0;
	box-sizing: border-box;
}

.la-2fa-wizard__verify-input:focus {
	outline: none;
	border-color: #E84A2E;
	box-shadow: 0 0 0 2px rgba(232, 74, 46, 0.15);
}

.la-2fa-wizard__codes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin: 16px 0;
}

.la-2fa-wizard__code {
	padding: 8px;
	font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
	font-size: 14px;
	text-align: center;
	background: #F6F7F7;
	border-radius: 4px;
}

.la-2fa-wizard__download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}

.la-2fa-wizard__confirm {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 13px;
}

.la-2fa-wizard__error {
	color: #991B1B;
	font-size: 13px;
	margin-top: 8px;
}

/* ── Status View (when 2FA is configured) ────────────────────── */

.la-2fa-status__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 13px;
}

.la-2fa-status__label {
	color: #50575E;
}

.la-2fa-status__value {
	font-weight: 500;
	color: #1D2327;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media screen and (max-width: 480px) {
	.la-2fa-wrap {
		padding: 12px;
	}

	.la-2fa-card {
		padding: 24px 20px;
	}

	.la-2fa-input {
		font-size: 20px;
	}
}

/* ── Trust this device checkbox (verify screen) ───────────── */
.la-2fa-trust {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--la-text-muted, #50575E);
	background: #F6F7F7;
	border: 1px solid #DCDCDE;
	border-radius: 6px;
	cursor: pointer;
}
.la-2fa-trust input { margin: 0; }

/* ── Trusted devices list (profile page) ─────────────────── */
.la-2fa-devices {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 12px 0;
}

.la-2fa-device {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border: 1px solid var(--la-border, #DCDCDE);
	border-radius: 6px;
	background: #FFFFFF;
}

.la-2fa-device__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.la-2fa-device__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--la-text, #1D2327);
}

.la-2fa-device__sub {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--la-text-muted, #50575E);
}

.la-2fa-devices__footer {
	display: flex;
	justify-content: flex-end;
	padding-top: 4px;
}
