/**
 * Two-Factor Authentication code-entry popup styles.
 *
 * @package Google_Security_For_WordPress
 */
.gswp-2fa-overlay {
	position: fixed;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba( 17, 24, 39, 0.6 );
	z-index: 2147483600;
}

.gswp-2fa-overlay.is-open {
	display: flex;
}

.gswp-2fa-modal {
	box-sizing: border-box;
	width: 100%;
	max-width: 380px;
	padding: 24px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.25 );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	text-align: left;
}

.gswp-2fa-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.gswp-2fa-desc {
	margin: 0 0 16px;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #4b5563;
}

.gswp-2fa-error {
	margin: 0 0 12px;
	padding: 8px 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #b91c1c;
	font-size: 13px;
	line-height: 1.4;
}

.gswp-2fa-input {
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 14px;
	padding: 10px 12px;
	font-size: 18px;
	letter-spacing: 3px;
	text-align: center;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
}

.gswp-2fa-input:focus {
	outline: none;
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba( 79, 70, 229, 0.25 );
}

.gswp-2fa-submit {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #4f46e5;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.gswp-2fa-submit:hover {
	background: #4338ca;
}

.gswp-2fa-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.gswp-2fa-cancel {
	display: block;
	width: 100%;
	margin: 12px 0 0;
	padding: 4px;
	font-size: 13px;
	color: #6b7280;
	background: none;
	border: none;
	cursor: pointer;
}

.gswp-2fa-cancel:hover {
	color: #374151;
	text-decoration: underline;
}

body.gswp-2fa-lock {
	overflow: hidden;
}
