@import "@automattic/color-studio/dist/color-variables";
@import "two-factor-content";

.two-factor-authentication__small-print {
	clear: both;
	font-size: $font-body-small;
	padding-top: 8px;
	color: $studio-gray-40;

	a {
		color: $studio-gray-40;
		text-decoration: underline;
	}
}

.two-factor-authentication__verification-code-form {
	button {
		width: 100%;
	}

	.form-label {
		text-transform: uppercase;
		font-size: $font-body-extra-small;
		margin-bottom: 12px;
	}

	.verification-code-form__help-text {
		margin-top: 16px;
		min-height: 50px;
	}
}

.woo .two-factor-authentication__verification-code-form-wrapper {
	padding: 4px 0 0;
	text-align: center;

	.security-key-form__help-text {
		margin-bottom: 40px;
	}

	.two-factor-authentication__verification-code-form {
		border: 0;
		padding: 0 0 10px;
		margin-bottom: 40px;
	}

	@media screen and (max-width: 660px) {
		text-align: left;
	}

	p {
		margin: 0;
	}

	strong {
		color: #50575e;
	}

	button {
		text-transform: inherit;
		padding: 12px 24px;
	}

	.form-label {
		font-weight: 500;
		text-align: left;
		margin-bottom: 8px;
	}

	.form-fieldset {
		margin: 40px auto 16px;
		max-width: 404px;
	}

	.form-button {
		margin: 0;
		max-width: 404px;
	}

	.form-fieldset,
	.form-button {
		@media screen and (max-width: 617px) {
			margin-left: 0;
			margin-right: 0;
			width: 100%;
		}
	}

	.auth-form__separator {
		max-width: 404px;
		margin-left: auto;
		margin-right: auto;
	}

	.two-factor-authentication__actions.card {
		padding: 36px 0 40px;

		.button {
			border: 1px solid #c3c4c7;
			color: var(--color-gray-100);
			font-weight: 500;
			line-height: 20px;
			box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
			width: 100%;
			max-width: 404px;
		}
	}

	.two-factor-authentication__small-print {
		a {
			color: var(--woo-purple-40);
		}
	}
}

.security-key-form__add-wait-for-key {
	text-align: center;

	.spinner {
		margin-bottom: 1em;
	}

	p {
		margin-bottom: 0.5em;
	}
}

.security-key-form__add-wait-for-key-heading {
	font-weight: 600;
}
